# rocambole-node-update **Repository Path**: mirrors_sindresorhus/rocambole-node-update ## Basic Information - **Project Name**: rocambole-node-update - **Description**: Update a rocambole AST node - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Deprecated The Rocambole project is no longer maintained. --- # rocambole-node-update [![Build Status](https://travis-ci.org/sindresorhus/rocambole-node-update.svg?branch=master)](https://travis-ci.org/sindresorhus/rocambole-node-update) > Update a [rocambole](https://github.com/millermedeiros/rocambole) AST node ## Install ``` $ npm install rocambole-node-update ``` ## Usage ```js 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](https://sindresorhus.com)