Acorn VS esprima

Compare Acorn vs esprima and see what are their differences.

Acorn

A small, fast, JavaScript-based JavaScript parser (by acornjs)
Ast

esprima

ECMAScript parsing infrastructure for multipurpose analysis (by facebookarchive)
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
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
Acorn esprima
13 1
10,230 139
0.8% -
7.9 0.0
17 days ago over 5 years ago
JavaScript JavaScript
MIT License BSD 2-clause "Simplified" 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.

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.

esprima

Posts with mentions or reviews of esprima. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-29.
  • Implementing a runtime version of JSX
    2 projects | dev.to | 29 Jul 2021
    JSX is one of the most commonly used syntax extensions out there. Originally JSX was parsed via a Facebook fork of Esprima — a JavaScript syntax parser developed by jQuery. As it gained momentum, Acorn took things to their hands and decided to make their own version of the parser which ended up being 1.5–2x faster than Esprima-fb, and is now being used by officially Babel.

What are some alternatives?

When comparing Acorn and esprima you can also consider the following projects:

babel-parser

cherow

Rocambole - Recursively walk and transform EcmaScript AST

jscodeshift - A JavaScript codemod toolkit.

Babel (Formerly 6to5) - 🐠 Babel is a compiler for writing next generation JavaScript.

prettier - Prettier is an opinionated code formatter.

codemod-example - Codemod for my article: https://blog.paulcodes.tech/all-about-abstract-syntax-tree

react-codemod - React codemod scripts

recast - JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator

astexplorer - A web tool to explore the ASTs generated by various parsers.

estree - The ESTree Spec