3.0.0 • Published 6 years ago
rocambole-node-remove v3.0.0
Deprecated
The Rocambole project is no longer maintained.
rocambole-node-remove
Remove a rocambole AST node
Install
$ npm install rocambole-node-remove
Usage
const rocambole = require('rocambole');
const removeNode = require('rocambole-node-remove');
rocambole.moonwalk('if (true) { foo() }', node => {
if (node.type === 'CallExpression') {
removeNode(node);
}
}).toString();
//=> 'if (true) { }'
License
MIT © Sindre Sorhus