rocambole-node-remove

2019-02-12 admin

rocambole-node-remove是什么

什么是rocambole-node-remove,Remove a rocambole AST node

rocambole-node-remove使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-53554.html

文章标题:rocambole-node-remove

回到顶部