An open API service indexing awesome lists of open source software.

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.

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)