esprima
Esprima is a JavaScript parser written in JavaScript that analyzes JavaScript source code and produces an Abstract Syntax Tree. It implements the ECMAScript language specification and generates ESTree-compatible ASTs, providing location data such as line and column numbers and optional ranges.
In addition to parsing, Esprima offers options to control parsing behavior, including ecmaVersion (to select the
Esprima is widely used by tooling in the JavaScript ecosystem. It has been employed by code analysis,
The project is open-source, and its repositories provide documentation, examples, and integration guides for common workflows.