undebuggify
v1.1.0
Published
Browserify transform to remove visionmedia/debug related code using AST.
Downloads
14
Maintainers
Readme
undebuggify
Browserify transform to remove visionmedia/debug related code using AST.
Install
npm install --save-dev undebuggify
Usage
CLI
browserify -t undebuggify src.js -o dist.js
Example
Now src.js:
var debug = require("debug"),
d = debug("MYAPP")
function greet() {
d("#greet called")
return "hi"
}
Run browserify -t undebuggify src.js -o dist.js
, then dist.js will be created like:
function greet() {
return 'hi';
}
Test
% npm install
% npm test
License
MIT (c) keik