A small, fast, JavaScript-based JavaScript parser
Browse cluster: JavaScript Standard Style Linting →Acorn is a tiny, fast JavaScript parser written entirely in JavaScript that produces ESTree-compliant abstract syntax trees. The project comprises three main packages: the core acorn parser, acorn-loose for error-tolerant parsing that can recover from syntax errors by inserting placeholder nodes, and acorn-walk for traversing and analyzing syntax trees. The parser is built with JavaScript and can be extended through a plugin system, supporting both ESM and CommonJS module formats, and offers extensive configuration options for parsing different ECMAScript versions and code modes.