Hacker News new | past | comments | ask | show | jobs | submit login

(Disclaimer: I'm maintaining jscodeshift)

Yes, this is great! I'd love to be able to integrate graspjs with jscodeshift somehow. Ideally there would be multiple possible ways to find the nodes you want to change (pattern matching, tree traversal, etc), and multiple ways to specify how to replace them (e.g. a template like in your example vs a function where you can do anything you want).

Simple transforms should definitely be possible with little "code" like in your example and we certainly have to improve jscodeshift in this regard.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: