package
lezer-based JavaScript grammar
npm install @lezer/javascriptGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
This is a JavaScript grammar for the lezer parser system.
It parses modern JavaScript, and supports a "ts"
dialect to parse
TypeScript, and a "jsx" dialect to parse JSX.
The top option can be set to "SingleExpression" or
"SingleClassItem" to parse an expression or class item instead of a
full program.
The code is licensed under an MIT license.
Estimated unpacked size across 4 packages.
825.5 kB
Includes dependencies.
3 direct dependencies.