Astring
Generate JavaScript source text from a syntax tree.
davidbonnet · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Supply a tiny syntax tree with a single named constant set to 5.
What we tested
1.9.0. Supply a tiny syntax tree with a single named constant set to 5. Generated the exact constant declaration and terminating newline.