esm-adapter

0.0.1 • Public • Published

ESM adapter

Import ESM modules from CommonJS. Installation requires node-gyp.

const adapter = require('adapter');
const esmModule = adapter('some-esm-module');

This adapter is based on deasync and on the dynamic import().

Readme

Keywords

Package Sidebar

Install

npm i esm-adapter

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

882 B

Total Files

3

Last publish

Collaborators

  • ejs-adapter