87 releases (49 breaking)

new 0.49.0 Feb 10, 2025
0.48.1 Jan 26, 2025
0.44.0 Dec 25, 2024
0.38.0 Nov 26, 2024
0.0.1 Mar 30, 2023

#411 in Programming languages

Download history 18050/week @ 2024-10-21 14633/week @ 2024-10-28 15204/week @ 2024-11-04 16574/week @ 2024-11-11 17155/week @ 2024-11-18 11001/week @ 2024-11-25 16749/week @ 2024-12-02 15293/week @ 2024-12-09 14508/week @ 2024-12-16 7587/week @ 2024-12-23 9730/week @ 2024-12-30 16058/week @ 2025-01-06 15625/week @ 2025-01-13 14585/week @ 2025-01-20 15672/week @ 2025-01-27 15581/week @ 2025-02-03

62,716 downloads per month
Used in 41 crates (18 directly)

MIT license

2.5MB
50K 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.5MB
~98K SLoC