https://github.com/southpolesteve/esm-refactor
A tool for refactoring JavaScript Modules
https://github.com/southpolesteve/esm-refactor
cli es6 esmodules javascript modules refactoring refactoring-tools
Last synced: about 1 year ago
JSON representation
A tool for refactoring JavaScript Modules
- Host: GitHub
- URL: https://github.com/southpolesteve/esm-refactor
- Owner: southpolesteve
- Created: 2017-12-29T04:01:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T20:18:36.000Z (over 8 years ago)
- Last Synced: 2024-08-08T15:06:21.601Z (almost 2 years ago)
- Topics: cli, es6, esmodules, javascript, modules, refactoring, refactoring-tools
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esm-refactor
[](https://travis-ci.org/southpolesteve/esm-refactor)
Refactoring projects with a lot of ES modules is hard. This tool makes it easier. It is not perfect, but it will do 80% of the work for you. In most cases the linter will help with the last 20%.
### Install
`npm install -g esm-refactor`
### Usage
```
esm-refactor [command]
Commands:
esm-refactor split split one file into a folder with files for each export
esm-refactor move-file move a file with ES modules
Options:
--help Show help [boolean]
--version Show version number [boolean]