Remove a rocambole AST node
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 tweaks Oct 5, 2015
.gitattributes init Feb 22, 2014
.gitignore init Feb 22, 2014
.jshintrc tweaks Aug 17, 2014
.travis.yml tweaks Oct 5, 2015
index.js init Feb 22, 2014
license tweaks Aug 17, 2014
package.json tweaks Oct 5, 2015
readme.md tweaks Oct 5, 2015
test.js tweaks Aug 17, 2014

readme.md

rocambole-node-remove Build Status

Remove a rocambole AST node

Install

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