1.0.0 • Published 10 years ago

repack-rows v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

repack-rows

Rebundle unpacked Browserify bundles with optional mockups

Install

Get it from npm

npm install repack-rows --save

Usage

var unpack = require('browser-unpack');
var repack = require('repack-rows');
var rows = unpack(bundle);
var main = repack(rows);

repack(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 repack-rows 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