You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: napi/parser/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ See https://stackblitz.com/edit/oxc-parser for usage example.
12
12
13
13
When parsing JS or JSX files, the AST returned is fully conformant with the
14
14
[ESTree standard](https://github.com/estree/estree), the same as produced by
15
-
[Acorn](https://www.npmjs.com/package/acorn).
15
+
[Acorn](https://npmx.dev/package/acorn).
16
16
17
-
When parsing TypeScript, the AST conforms to [@typescript-eslint/typescript-estree](https://www.npmjs.com/package/@typescript-eslint/typescript-estree)'s TS-ESTree format.
17
+
When parsing TypeScript, the AST conforms to [@typescript-eslint/typescript-estree](https://npmx.dev/package/@typescript-eslint/typescript-estree)'s TS-ESTree format.
18
18
19
19
If you need all ASTs in the same with-TS-properties format, use the `astType: 'ts'` option.
20
20
@@ -33,7 +33,7 @@ Any deviation would be considered a bug.
33
33
34
34
### AST Types
35
35
36
-
[@oxc-project/types](https://www.npmjs.com/package/@oxc-project/types) can be used. For example:
36
+
[@oxc-project/types](https://npmx.dev/package/@oxc-project/types) can be used. For example:
37
37
38
38
```typescript
39
39
import { Statement } from"@oxc-project/types";
@@ -74,7 +74,7 @@ It is likely that you are writing a parser plugin that requires ESM information.
74
74
75
75
To avoid walking the AST again, Oxc Parser returns ESM information directly.
76
76
77
-
This information can be used to rewrite import and exports with the help of [`magic-string`](https://www.npmjs.com/package/magic-string),
77
+
This information can be used to rewrite import and exports with the help of [`magic-string`](https://npmx.dev/package/magic-string),
0 commit comments