Language-agnostic transpiler library based on babel.
npm install --save-dev @karimsa/tardis.
Tardis offers APIs for just simple tree traversal as well as transpiling which is just a wrapper around the traversal API that dispatches generation on the root node (which should propagate through the tree if the tree is created properly).
The transpiler & traversal APIs are both asynchronous to allow for asynchronous walking of the tree. This isn't particularly efficient but it allows you to have async checks for how you want to do node replacements.
Some examples are provided in examples/.
- Allow usage of existing babel plugins with minimal addition effort
- This would be an effective way of getting to feature-complete on the NodePath class
- Add auto-sourcemap support by watching incoming location + creating a outgoing location from the generator
Copyright © 2018-present Karim Alibhai.
Licensed under MIT license.