Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 10 days ago
JSON representation

A tool for refactoring JavaScript Modules

Awesome Lists containing this project

README

        

# esm-refactor

[![Build Status](https://travis-ci.org/southpolesteve/esm-refactor.svg?branch=master)](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]