This package has been deprecated

Author message:

The Rocambole project is no longer maintained.

rocambole-node-remove

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i rocambole-node-remove

Weekly Downloads

7,738

Version

3.0.0

License

MIT

Unpacked Size

2.63 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus