rowboat
v1.0.0
Published
Rebundle unpacked Browserify bundles with optional mockups
Downloads
5
Readme
rowboat
Rebundle unpacked Browserify bundles with optional mockups
Install
Get it from npm
npm install rowboat --save
Usage
var unpack = require('browser-unpack');
var rowboat = require('rowboat');
var rows = unpack(bundle);
var main = rowboat(rows);
rowboat(rows, mockups?)
Takes the rows
output from browser-unpack and leverages proxyquire to rebundle the fragmented Browserify bundle. No external dependencies are necessary, and you can in fact provide mockups
for dependencies you need to mock.
This makes rowboat
ideal in testing scenarios where you need to assert whether a bundle conforms to certain specifications without necessarily having to look at the actual source code that was used to compile said bundle.
License
MIT