Skip to content

Commit a720ff2

Browse files
authored
Update README.md
1 parent 137c2f7 commit a720ff2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# @esm.sh/cjs-module-lexer
1+
# cjs-module-lexer
22

33
A lexer for detecting the `module.exports` of a CJS module, written in Rust and compiled to WebAssembly.
44

55
## Usage
66

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:
88

99
```bash
1010
npm i @esm.sh/cjs-module-lexer
1111
```
1212

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.
1414

1515
```js
1616
const { parse } = require("@esm.sh/cjs-module-lexer");

0 commit comments

Comments
 (0)