{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"},{"label":"Compilers","url":"https://skillfed.io/packages/category/software-development-compilers"},{"label":"General","url":"https://skillfed.io/packages/category/text-processing-general"}],"enrichment":{"capability":"Parses and tokenizes JavaScript code up to ECMA 2025 syntax, producing an ESTree-compatible abstract syntax tree or token stream for analysis and manipulation.","skillfed_tags":["javascript-parsing","ast-generation","code-analysis"],"use_cases":["Static analysis of JavaScript code to detect patterns, security issues, or code quality problems.","Building a JavaScript-to-Python transpiler or code generator that needs to understand JS syntax.","Extracting metadata from JavaScript files (function names, imports, dependencies) for tooling.","Linting or formatting JavaScript code by walking and inspecting its AST.","Embedding JavaScript parsing in a Python application that processes user-supplied JS code."],"what_it_does":"esprima2 is a JavaScript parser written in Python that converts JavaScript source code into an abstract syntax tree (AST) or token stream. It supports syntax up to ECMA 2025 and is built on a faithful Python port of the original esprima library, extended with modern ECMAScript features that the upstream projects no longer maintain. The parser produces output in the ESTree standardized format, making it compatible with tools and libraries that expect that structure.\n\nYou use it to analyze or manipulate JavaScript code from Python\u2014tokenizing to extract individual language elements, or parsing to build a complete syntax tree for traversal, transformation, or code generation. It includes experimental JSX support and optional source location tracking. The package is backed by roughly 1500 unit tests and requires Python 3.10 or later.","worth_installing":"Yes, if you need to parse modern JavaScript from Python. The package is actively maintained, has no dependencies, installs easily, carries a permissive license, and supports current ECMAScript syntax. It is relatively new (first release July 2025) but shows active development and reasonable test coverage. No known security vulnerabilities. The main caveat is that JSX support is marked experimental, so verify it meets your needs if you rely on that feature."},"id":"esprima2","links":{"html":"https://skillfed.io/packages/esprima2","md":"https://skillfed.io/packages/esprima2.md","pypi":"https://pypi.org/project/esprima2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-22","license_spdx":null,"license_treatment":"permissive","name":"esprima2","python_support":"supports_current","summary":"high-performance javascript parser, tokenizer and lexical analyser"},"popularity":{"monthly_downloads":262895,"position":8366,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.0.0"}
