0.2.0 • Published 7 years ago

js-to-mjs v0.2.0

Weekly downloads
19
License
MIT
Repository
github
Last release
7 years ago

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

License

MIT

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago