astring
🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST. (by davidbonnet)
Acorn
A small, fast, JavaScript-based JavaScript parser (by acornjs)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
astring | Acorn | |
---|---|---|
1 | 13 | |
1,141 | 10,230 | |
- | 0.8% | |
4.3 | 7.9 | |
18 days ago | 20 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
astring
Posts with mentions or reviews of astring.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-16.
-
How do I edit an AST while parsing it?
and https://github.com/davidbonnet/astring For rebuilding the tree
Acorn
Posts with mentions or reviews of Acorn.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-21.
-
Abstract Syntax Trees and Practical Applications in JavaScript
Why do we then have other JavaScript parsers like babel parser, swc parser, acorn, espree and the likes since JavaScript engines have their own internal parsers?
- Árvore de sintaxe abstrata, oque são e aonde vivem.
-
Regex for any js string for representing an object or array containing any number of array or object?
If you're trying to determine if a string is valid Javascript then your best bet is to use a JS parser like Acorn. Trying to DIY parsing with just regex is a good way to end up incredibly frustrated.
-
Code Art — abstract artworks for your creations
To render UI I use Svelte. To parse JS files I use Acorn JS in Web Worker.
-
What is Babel? And SWC?
Behind Babel is created by an Australian developer Sebastian McKenzie and now consists a small team of contributors. Babel also makes uses a polyfill library called core-js, which in turn uses a JavaScript parser, acorn.
-
🕶 What it takes to build a Static Analysis tool
At line 3, we import parseScript from meriyah which is a JavaScript parser (could have been babel, acorn, swc, etc doesn't matter for our use case as long as they correctly implement the spec).
- Acorn: A lightweight PaaS for Kubernertes, from Rancher founders
-
[AskJS] What is your preferred tooling when working with JS ASTs?
A simple starting point is Acorn with estree-walker. Not sure if you'll need more advanced functionality but that pair has worked well for my usage. It's also the combo that Svelte uses internally.
-
How do I edit an AST while parsing it?
https://github.com/acornjs/acorn For parsing the tree
- Show HN: Monocle – bidirectional code generation library
What are some alternatives?
When comparing astring and Acorn you can also consider the following projects:
escodegen - ECMAScript code generator
babel-parser
estraverse - ECMAScript JS AST traversal functions
esprima - ECMAScript parsing infrastructure for multipurpose analysis
prettier - Prettier is an opinionated code formatter.
cherow
astexplorer - A web tool to explore the ASTs generated by various parsers.
Rocambole - Recursively walk and transform EcmaScript AST
jscodeshift - A JavaScript codemod toolkit.
Babel (Formerly 6to5) - 🐠 Babel is a compiler for writing next generation JavaScript.
codemod-example - Codemod for my article: https://blog.paulcodes.tech/all-about-abstract-syntax-tree