conv-mod
v0.1.1
Published
Convert JavaScript module from AMD or CommonJs to ES6.
Downloads
2
Maintainers
Readme
conv-mod
Convert JavaScript module from AMD or CommonJs to ES6.
quick start
Install conv-mod:
npm install conv-mod -g
Usage:
conv-mod [options] <dir> [extraDirs...]
options
-f, --filter <filter>
: a query string to filter files-r, --regular
: regard query string as regular expression to filter files--amd
: convert AMD modules--cjs
: convert CommonJs modules
used libraries
currently can not convert
const a = require('a').default;
const {a, b} = require('a');
const a, {b, c} = require('a');