rocambole-strip-debugger
v2.0.0 rocambole esprima ast strip remove delete clean debug debugger and 3 more...
Deprecated
The Rocambole project is no longer maintained.
rocambole-strip-debugger
Strip debugger statements from a
rocambole
AST
Install
$ npm install rocambole-strip-debugger
Usage
const rocambole = require('rocambole');
const stripDebugger = require('rocambole-strip-debugger');
rocambole.moonwalk('if (true) { debugger; }', node => {
stripDebugger(node);
}).toString();
//=> 'if (true) { }'
License
MIT © Sindre Sorhus
npm i rocambole-strip-debugger
Metadata
- MIT
- >=6
- Sindre Sorhus
- released 11/9/2018