102 releases (58 breaking)

Uses new Rust 2024

new 0.58.1 Mar 13, 2025
0.57.0 Mar 11, 2025
0.44.0 Dec 25, 2024
0.38.0 Nov 26, 2024
0.0.1 Mar 30, 2023

#26 in #typescript-parser

Download history 15484/week @ 2024-11-21 12216/week @ 2024-11-28 16651/week @ 2024-12-05 14635/week @ 2024-12-12 10365/week @ 2024-12-19 7585/week @ 2024-12-26 14337/week @ 2025-01-02 16181/week @ 2025-01-09 13917/week @ 2025-01-16 15491/week @ 2025-01-23 17397/week @ 2025-01-30 19186/week @ 2025-02-06 20152/week @ 2025-02-13 21927/week @ 2025-02-20 20122/week @ 2025-02-27 18435/week @ 2025-03-06

84,931 downloads per month
Used in 47 crates (19 directly)

MIT license

2.5MB
47K SLoC

Oxc AST (Abstract Syntax Tree) Nodes

Supports JavaScript, TypeScript and JSX.

Types

AST types are similar to estree and typescript-eslint's definition, with a few notable exceptions:

Field order of types follows "Evaluation order" defined by ECMAScript spec. For TypeScript types, we follow how field order is defined in tsc.

Oxc's visitors (Visit, VisitMut, Traverse) visit AST node fields in same order as they are defined in the types here.

Parsing

You can obtain an AST by parsing source code with a Parser from oxc_parser.

Cargo Features

  • "serialize" enables support for serialization to ESTree JSON

Dependencies

~5.5MB
~95K SLoC