Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgechev/is-esm
🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.
https://github.com/mgechev/is-esm
cli esm performance tree-shaking
Last synced: about 2 months ago
JSON representation
🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.
- Host: GitHub
- URL: https://github.com/mgechev/is-esm
- Owner: mgechev
- Created: 2020-05-15T20:48:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T04:29:45.000Z (almost 2 years ago)
- Last Synced: 2024-07-08T12:11:39.677Z (2 months ago)
- Topics: cli, esm, performance, tree-shaking
- Language: JavaScript
- Homepage:
- Size: 301 KB
- Stars: 183
- Watchers: 8
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-buildless - is-esm
- awesome-list - is-esm - shakable. | mgechev | 152 | (JavaScript)
README
# `is-esm`
This package tells you if an npm module uses ECMAScript modules or not.
## Why do I need to know?
ECMAScript modules are statically analyzable. This helps bundlers and JavaScript optimizers to get rid of the unused exports and ultimately make your bundles smaller.
You can read more about this [here](https://web.dev/commonjs-larger-bundles/).
## How to use it?
To use `is-esm`:
```bash
$ npx is-esm @angular/core 8.0.0
$ ✔ Yes
``````bash
$ npx is-esm moment
$ ✖ No
```## License
MIT