Comparing version 3.0.16 to 3.0.17
{ | ||
"name": "esm", | ||
"version": "3.0.16", | ||
"version": "3.0.17", | ||
"description": "Tomorrow's ESM today!", | ||
@@ -5,0 +5,0 @@ "keywords": "commonjs, ecmascript, export, import, modules, node, require", |
@@ -23,2 +23,4 @@ # esm | ||
Use `esm` to load the main ES module and export it as CommonJS. | ||
**index.js** | ||
@@ -28,5 +30,10 @@ ```js | ||
require = require("esm")(module/*, options*/) | ||
module.exports = require("./main.js").default | ||
module.exports = require("./main.js") | ||
``` | ||
:bulb: This is automagically done by [`create-esm`](https://github.com/standard-things/create-esm). | ||
**main.js** | ||
```js | ||
// ESM syntax is supported. | ||
export {} | ||
``` | ||
:bulb: These files are automagically created with [`create-esm`](https://github.com/standard-things/create-esm). | ||
@@ -33,0 +40,0 @@ 2. Enable `esm` for local runs: |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
225912
99