Package Exports
- mlly
Readme
🤝 mlly
ECMAScript module utils for Node.js
Usage
Install
Install npm package:
# using yarn
yarn add mlly
# using npm
npm install mlly
CommonJS Context
This utility creates a compatible context that we loose when migrating to ECMA modules.
import { createCommonJS } from 'mlly'
const { __dirname, __filename, require } = createCommonJS(import.meta)
License
MIT