esm
/
1.1.7
esm 1.1.7
Install from the command line:
Learn more about npm packages
$ npm install @qiwi-forks/esm@1.1.7
Install via package.json:
"@qiwi-forks/esm": "1.1.7"
About this version
Fork of esm with some useful patches:
- Adam Thornburn's fix for mixed esm-cjs graphs
- Jonathan Grimes' tweak ups
- added
.cjs
to allowed extensions - supported
node:
-prefixed modules - bumped deps, fixed some vulnerabilities
node -r esm main.js
// Set options as a parameter, environment variable, or rc file.
require = require("esm")(module/*, options*/)
module.exports = require("./main.js")