80 releases (45 breaking)

new 0.45.0 Jan 11, 2025
0.44.0 Dec 25, 2024
0.43.0 Dec 21, 2024
0.38.0 Nov 26, 2024
0.0.1 Mar 30, 2023

#321 in Programming languages

Download history 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 14638/week @ 2024-11-02 16644/week @ 2024-11-09 17464/week @ 2024-11-16 11941/week @ 2024-11-23 15773/week @ 2024-11-30 15446/week @ 2024-12-07 14751/week @ 2024-12-14 7369/week @ 2024-12-21 9767/week @ 2024-12-28 15232/week @ 2025-01-04

49,762 downloads per month
Used in 26 crates (18 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
~89K SLoC