75 releases (40 breaking)

new 0.40.1 Dec 10, 2024
0.39.0 Dec 4, 2024
0.38.0 Nov 26, 2024
0.22.1 Jul 28, 2024
0.0.1 Mar 30, 2023

#321 in Programming languages

Download history 45638/week @ 2024-08-22 38717/week @ 2024-08-29 39745/week @ 2024-09-05 39217/week @ 2024-09-12 46722/week @ 2024-09-19 55624/week @ 2024-09-26 55709/week @ 2024-10-03 41855/week @ 2024-10-10 22707/week @ 2024-10-17 16105/week @ 2024-10-24 14648/week @ 2024-10-31 15994/week @ 2024-11-07 16804/week @ 2024-11-14 15484/week @ 2024-11-21 12216/week @ 2024-11-28 13876/week @ 2024-12-05

61,233 downloads per month
Used in 23 crates (16 directly)

MIT license

2.5MB
53K 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
~88K SLoC