Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cjs2es6

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjs2es6

Automatic migration from CommonJS to ES6 modules

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Logo

Automatic migration of modules: CommonJS → ES6

Copyright © 2016–2022 James J. Womack, Ole Morten Didriksen, luoage, tripu. See the licence.

npm version Licence

Prerequisites

  • Node.js 14, 16 (preferred) or 18
  • npm 7 or 8 (preferrred)

Usage

Two ways:

Installing first

npm i -g cjs2es6
cjs2es6 [GLOB]...

Without installation

npx cjs2es6 [GLOB]...

Examples

cjs2es6 src/
cjs2es6 lib/**/*.js
cjs2es6 ./index.js ./modules/*.mjs ../react-client/**/*.ts*

Development

git clone https://github.com/tripu/cjs2es6.git
cd cjs2es6
npm ci

See the changelog

Testing

npm t

Keywords

FAQs

Package last updated on 10 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc