2.0.0 • Published 5 years ago
rocambole-strip-debugger v2.0.0
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