parseScript(code, options, delegate)Parse ECMAScript source as a script.
DEPENDENCY-FREE ECMASCRIPT PARSER
The Esprima 4.0.1 parsing contract, maintained as a reproducible package with clean installs and first-party TypeScript declarations.
npm install @stackline/esprima
LIVE PACKAGE
parseScript(code, options, delegate)Parse ECMAScript source as a script.
parseModule(code, options, delegate)Parse source with module grammar.
parse(code, options, delegate)Preserved historical entry point.
tokenize(code, options, delegate)Return lexical tokens without building an AST.
Grammar scope: ECMAScript 2017 plus experimental JSX, matching Esprima 4.0.1. Modern syntax outside that contract is intentionally not accepted.