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: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
-
# @esm.sh/cjs-module-lexer
1
+
# cjs-module-lexer
2
2
3
3
A lexer for detecting the `module.exports` of a CJS module, written in Rust and compiled to WebAssembly.
4
4
5
5
## Usage
6
6
7
-
`@esm.sh/cjs-module-lexer` currently only supports Node.js environment. You can install it via npm CLI:
7
+
cjs-module-lexer currently only supports Node.js environment. You can install it via npm CLI:
8
8
9
9
```bash
10
10
npm i @esm.sh/cjs-module-lexer
11
11
```
12
12
13
-
`@esm.sh/cjs-module-lexer` provides a `parse` function that detects the `module.exports` of a commonjs module. The function returns an object with two properties: `exports` and `reexports`. The `exports` property is an array of the exported names, and the `reexports` property is an array of the reexported modules.
13
+
cjs-module-lexer provides a `parse` function that detects the `module.exports` of a commonjs module. The function returns an object with two properties: `exports` and `reexports`. The `exports` property is an array of the exported names, and the `reexports` property is an array of the reexported modules.
0 commit comments