@chialab/cjs-to-esm
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

CommonJS to ESM • A commonjs to esm converter, inspired by WMR.

NPM


Install

npm i @chialab/cjs-to-esm -D
yarn add @chialab/cjs-to-esm -D

Usage

import { transform } from '@chialab/cjs-to-esm';

const { code, map } = transform('require("tslib"); module.exports = function() {}');

License

CommonJS to ESM is released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @chialab/cjs-to-esm

Weekly Downloads

2,863

Version

0.18.0

License

MIT

Unpacked Size

21.1 kB

Total Files

5

Last publish

Collaborators

  • chialab-admin
  • chialab-developers