0.0.1 • Published 10 months ago

only-allow-esm v0.0.1

Weekly downloads
-
License
WTFPL
Repository
github
Last release
10 months ago

Only Allow ESM

Force ES Modules to be used on a project.

Usage

Add a postinstall script to your package's package.json.

{
  "scripts": {
    "postinstall": "npx only-allow-esm"
  }
}

If the user's package.json does not have "type": "module" in it, it will report an error and exit.

License

WTFPL

0.0.1

10 months ago