🐊Putout plugin adds ability to convert ecma script module to commonjs
npm install @putout/plugin-convert-esm-to-commonjs[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-convert-esm-to-commonjs.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-convert-esm-to-commonjs"npm"
> EcmaScript module syntax is the standard way to import and export values between files in JavaScript. The import statement can be used to reference a value exposed by the export statement in another file.
>
> CommonJS is a module system supported in Node, it provides a require function, which can be used to access the exports object exposed by another file.
>
> (c) parceljs
🐊Putout plugin adds ability to convert EcmaScript Modules to CommonJS. Use @putout/plugin-nodejs instead.
```
npm i @putout/plugin-convert-esm-to-commonjs
`json`
{
"rules": {
"convert-esm-to-commonjs": "on"
}
}
`js`
import hello from 'world';
`js``
const hello = require('world');
MIT