is-esm

0.0.0 • Public • Published

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.

How to use it?

To use is-esm:

$ npx is-esm @angular/core 8.0.0
$ ✔ Yes
$ npx is-esm moment
$ ✖ No

License

MIT

Package Sidebar

Install

npm i is-esm

Weekly Downloads

40

Version

0.0.0

License

MIT

Unpacked Size

5.3 kB

Total Files

5

Last publish

Collaborators

  • mgechev