70 releases (36 breaking)

new 0.36.0 Nov 9, 2024
0.34.0 Oct 26, 2024
0.22.1 Jul 28, 2024
0.11.0 Mar 30, 2024
0.0.1 Mar 30, 2023

#339 in Programming languages

Download history 61225/week @ 2024-07-20 69132/week @ 2024-07-27 59069/week @ 2024-08-03 47596/week @ 2024-08-10 47891/week @ 2024-08-17 44817/week @ 2024-08-24 38522/week @ 2024-08-31 36392/week @ 2024-09-07 40355/week @ 2024-09-14 50162/week @ 2024-09-21 58274/week @ 2024-09-28 47209/week @ 2024-10-05 41108/week @ 2024-10-12 18002/week @ 2024-10-19 15049/week @ 2024-10-26 14570/week @ 2024-11-02

92,505 downloads per month
Used in 23 crates (16 directly)

MIT license

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

~5–11MB
~112K SLoC