This package has been deprecated

Author message:

The Rocambole project is no longer maintained.

rocambole-node-update

3.0.0 • Public • Published

Deprecated

The Rocambole project is no longer maintained.


rocambole-node-update Build Status

Update a rocambole AST node

Install

$ npm install rocambole-node-update

Usage

const rocambole = require('rocambole');
const updateNode = require('rocambole-node-update');

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

License

MIT © Sindre Sorhus

/rocambole-node-update/

    Package Sidebar

    Install

    npm i rocambole-node-update

    Weekly Downloads

    64,095

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    2.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus