cli tool to fix commonjs exports from exports.default to module.exports in a file or directory of files.
npm install -g cjs-fixer
option is:
-f
or --file
cjs-fixer -f ./path/to/file.js
option is:
-d
or --dir
cjs-fixer -d ./path/to/dir
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.