81 releases (46 breaking)

new 0.46.0 Jan 14, 2025
0.44.0 Dec 25, 2024
0.38.0 Nov 26, 2024
0.22.1 Jul 28, 2024
0.0.1 Mar 30, 2023

#315 in Programming languages

Download history 53252/week @ 2024-09-24 58912/week @ 2024-10-01 44071/week @ 2024-10-08 35066/week @ 2024-10-15 17436/week @ 2024-10-22 14884/week @ 2024-10-29 15175/week @ 2024-11-05 16492/week @ 2024-11-12 17376/week @ 2024-11-19 10525/week @ 2024-11-26 17080/week @ 2024-12-03 15019/week @ 2024-12-10 13471/week @ 2024-12-17 7510/week @ 2024-12-24 10483/week @ 2024-12-31 14185/week @ 2025-01-07

47,849 downloads per month
Used in 26 crates (18 directly)

MIT license

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

~5MB
~90K SLoC