js-to-mjs
Replace .js with .mjs recursively
Last updated 2 years ago by noraesae .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install js-to-mjs 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

3 Versions

  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |