removify
v0.1.0
Published
Browserify transform to remove codes to which related specified module using AST.
Downloads
22
Readme
removify
Browserify transform to remove codes to which related specified module using AST.
Install
npm install removifyUsage
CLI
browserify -t [ removify -m <module-name> ] main.js -o bundle.jsExample
Now main.js given like:
var debug = require('debug'),
d = debug('a')
d(0)
function b() {
d(1)
console.log(2);
}
d(3)then use the browserify command to build main.js with -t [ removify -m debug ] to remove code to which related debug module:
browserify -t [ removify -m debug ] main.js -o bundle.jsand bundle.js will be outputed like:
function b() {
console.log(2);
}Test
% npm install
% npm testLicense
MIT (c) keik
