sarsamurmu / estree-toolkit

Tools for working with ESTree AST
https://estree-toolkit.netlify.app/
MIT License
54 stars 1 forks source link

Add `NodePath.cloneNode()` #8

Closed sarsamurmu closed 1 year ago

sarsamurmu commented 1 year ago

Add the method to easily clone the node associated with NodePath. Use structuredClone internally to clone the node. Maybe add an option to modify the function which will be used to clone the node.

sarsamurmu commented 1 year ago

Added in v1.7.0