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

#324 in Programming languages

Download history 46862/week @ 2024-08-20 38451/week @ 2024-08-27 43423/week @ 2024-09-03 37308/week @ 2024-09-10 41383/week @ 2024-09-17 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 16950/week @ 2024-12-03

63,974 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
~89K SLoC