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

js-to-mjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-to-mjs

Replace .js with .mjs recursively

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

js-to-mjs

Replace .js with .mjs recursively

What's this

Node.js will adopt ES modules with the special file extension, .mjs.

j2m recursively finds all the .jss imported from an entry script and replaces them with .mjss.

Install

$ npm i -g js-to-mjs

How to use

$ j2m index.js # entry script
$ j2m -d index.js # dry run

Development

$ npm i # install deps
$ npm test # run tests
$ node . -d test/fixtures/index.js # test-run with fixtures

Prior arts

  • @std/esm: ES modules in Node today!

License

MIT

FAQs

Package last updated on 17 Aug 2017

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