3.0.0 • Published 6 years ago

rocambole-node-remove v3.0.0

Weekly downloads
9,630
License
MIT
Repository
github
Last release
6 years ago

Deprecated

The Rocambole project is no longer maintained.


rocambole-node-remove Build Status

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