cjs-fixer
v1.0.0
Published
Fixes the exports of a commonjs module to be compatible with nodejs
Maintainers
Readme
Commonjs fix exports
cli tool to fix commonjs exports from exports.default to module.exports in a file or directory of files.
Install
npm install -g cjs-fixerUsage
fot a file
option is:
-f or --file
cjs-fixer -f ./path/to/file.jsfor a directory
option is:
-d or --dir
cjs-fixer -d ./path/to/dirContributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
