85 releases (48 breaking)

new 0.48.1 Jan 26, 2025
0.47.1 Jan 19, 2025
0.44.0 Dec 25, 2024
0.38.0 Nov 26, 2024
0.0.1 Mar 30, 2023

#424 in Programming languages

Download history 42878/week @ 2024-10-09 29110/week @ 2024-10-16 16939/week @ 2024-10-23 14569/week @ 2024-10-30 15642/week @ 2024-11-06 16730/week @ 2024-11-13 16782/week @ 2024-11-20 10675/week @ 2024-11-27 17061/week @ 2024-12-04 14606/week @ 2024-12-11 12108/week @ 2024-12-18 7765/week @ 2024-12-25 12219/week @ 2025-01-01 16382/week @ 2025-01-08 14202/week @ 2025-01-15 13154/week @ 2025-01-22

57,169 downloads per month
Used in 26 crates (18 directly)

MIT license

2.5MB
50K 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

  • "serde" enables support for serde serialization

Dependencies

~6MB
~98K SLoC