https://github.com/remahmoud/cjs-fixer
cli tool to fix commonjs exports from exports.default to module.exports in a file or directory of files.
https://github.com/remahmoud/cjs-fixer
cli cli-app commonjs commonjs-bundle commonjs-module commonjs-modules commonjs-package npm-cli npm-package
Last synced: 30 days ago
JSON representation
cli tool to fix commonjs exports from exports.default to module.exports in a file or directory of files.
- Host: GitHub
- URL: https://github.com/remahmoud/cjs-fixer
- Owner: remahmoud
- License: mit
- Created: 2023-05-24T10:23:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T10:23:23.000Z (about 3 years ago)
- Last Synced: 2025-11-23T22:15:02.479Z (6 months ago)
- Topics: cli, cli-app, commonjs, commonjs-bundle, commonjs-module, commonjs-modules, commonjs-package, npm-cli, npm-package
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Commonjs fix exports
cli tool to fix commonjs exports from exports.default to module.exports in a file or directory of files.
## Install
```bash
npm install -g cjs-fixer
```
## Usage
### fot a file
option is:
`-f` or `--file`
```bash
cjs-fixer -f ./path/to/file.js
```
### for a directory
option is:
`-d` or `--dir`
```bash
cjs-fixer -d ./path/to/dir
```
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
### Author
[Mahmoud Ibrahiam](https://www.linkedin.com/in/mahmoud-ibrahiam)