@putout/plugin-convert-esm-to-commonjs
🐊Putout plugin adds ability to convert ecma script module to commonjs
Last updated a year ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-convert-esm-to-commonjs 
SYNC missed versions from official npm registry.

@putout/plugin-convert-esm-to-commonjs NPM version

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.

Install

npm i @putout/plugin-convert-esm-to-commonjs

Rule

{
    "rules": {
        "convert-esm-to-commonjs": "on"
    }
}

❌ Example of incorrect code

import hello from 'world';

✅ Example of correct code

const hello = require('world');

License

MIT

Current Tags

  • 6.0.2                                ...           latest (a year ago)

21 Versions

  • 6.0.2                                ...           a year ago
  • 6.0.1                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.0.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.2.1                                ...           3 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.5.0                                ...           5 years ago
  • 1.4.1                                ...           5 years ago
  • 1.4.0                                ...           5 years ago
  • 1.3.2                                ...           5 years ago
  • 1.3.1                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE