Description
Meriyah is a JavaScript parser focused on performance and stability. It reads JavaScript source and produces an ESTree-compatible abstract syntax tree, which linters, bundlers and code transformation tools use to analyse code. The project says it conforms to the ECMAScript 2024 language specification and supports the additional Annex B features used in web browsers. It can parse code in script or module mode, and it supports JSX through an option. It does not parse TypeScript or Flow syntax. Location tracking is available with the ranges or loc options, and comments and tokens can be collected through onComment and onToken callbacks. Some TC39 stage 3 proposals, including decorators, source phase imports and deferred module evaluation, are enabled with the next option.…
Highlights
- ESTree-compatible AST output
- ECMAScript 2024 with Annex B browser features
- JSX support and stage 3 proposals through options
- Location, comment and token tracking
- No backtracking and low memory use
Ratings & Reviews
No ratings yet
Be the first to rate Meriyah.
People also visit
Meriyah FAQ
What is Meriyah?
A JavaScript parser that turns source code into an ESTree-compatible syntax tree for analysis and tooling.
Does it support TypeScript?
No. Meriyah does not support TypeScript or Flow syntax.
Can it parse JSX?
Yes, with the jsx option.
What about newer language features?
Stage 3 features including decorators, source phase imports and deferring module evaluation are supported when the next option is enabled.
How are regular expressions checked?
By default the JavaScript runtime validates regex literals, so newer RegExp features depend on the runtime. The README notes that some latest features require Node.js 24 or later as of May 2025. Set validateRegex to false for consistent behaviour across environments.
What are the best Meriyah alternatives?
Popular alternatives to Meriyah include Babel, esbuild and Code to Graph. See all Meriyah alternatives




