Strip debugger statements from a rocambole AST
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

rocambole-strip-debugger Build Status

Strip debugger statements from a rocambole AST

Install

$ npm install --save 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