rocambole-node-remove

Remove a rocambole AST node

npm install rocambole-node-remove
39 downloads in the last day
231 downloads in the last week
1 052 downloads in the last month

rocambole-node-remove Build Status

Remove a rocambole AST node

Install

npm install --save rocambole-node-remove

Example

var rocambole = require('rocambole');
var removeNode = require('rocambole-node-remove');

rocambole.moonwalk('if (true) { foo() }', function (node) {
    if (node.type === 'CallExpression') {
        removeNode(node);
    }
}).toString();
//=> if (true) {  }

License

MIT © Sindre Sorhus

npm loves you