@qiwi/esm
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
Usage
CLI
node -r @qiwi/esm main.js
JS API
// Set options as a parameter, environment variable, or rc file.
require = require("@qiwi/esm")(module/*, options*/)
module.exports = require("./main.js")
https://github.com/standard-things/esm