https://github.com/sun0day/esm-lexer-rs
A ESM/CJS module syntax lexer written in Rust
https://github.com/sun0day/esm-lexer-rs
esm esnext javascript lexer module-graph napi-rs
Last synced: over 1 year ago
JSON representation
A ESM/CJS module syntax lexer written in Rust
- Host: GitHub
- URL: https://github.com/sun0day/esm-lexer-rs
- Owner: sun0day
- License: mit
- Created: 2024-02-06T14:08:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T00:14:10.000Z (about 2 years ago)
- Last Synced: 2025-01-10T06:08:35.169Z (over 1 year ago)
- Topics: esm, esnext, javascript, lexer, module-graph, napi-rs
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esm-lexer-rs
An ESM/CJS module syntax lexer written in Rust.
## Why `esm-lexer-rs`
Compared to other ESM/CJS lexer libraries, `esm-lexer-rs` supports more wild module syntax with a smaller size and better parsing performance.
|package|module syntax|installed size|parsing time|
|---|----|----|---|
|`esm-lexer-rs`|ESM/CJS/JSX/TSX/VUE|
|[`es-module-lexer`](https://www.npmjs.com/package/es-module-lexer)|ESM
|[`rs-module-lexer`](https://www.npmjs.com/package/rs-module-lexer)|ESM/JSX/TSX