JSPM

  • Created
  • Published
  • Downloads 9642878
  • Score
    100M100P100Q211010F
  • License MIT

ECMAScript module utils for Node.js

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