# esm-refactor

> A tool for refactoring JavaScript modules

Latest version **0.0.9** (published 2018-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install esm-refactor
pnpm add esm-refactor
yarn add esm-refactor
bun add esm-refactor
```

Provides the command `esm-refactor`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2018-01-03 |
| First published | 2017-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steve Faulkner |
| Maintainers | southpolesteve |
| Keywords | JavaScript, modules, import, export, es6, esm, cli, refactor, es6 modules, ES modules |

## Links

- npm: https://www.npmjs.com/package/esm-refactor
- Repository: https://github.com/southpolesteve/esm-refactor
- Homepage: https://github.com/southpolesteve/esm-refactor#readme
- Issues: https://github.com/southpolesteve/esm-refactor/issues
- npm.io page: https://npm.io/package/esm-refactor

## Dependencies (5)

- [ora](https://npm.io/package/ora.md) ^1.3.0
- [yargs](https://npm.io/package/yargs.md) ^10.0.3
- [jscodeshift](https://npm.io/package/jscodeshift.md) ^0.4.0
- [fs-extra-promise](https://npm.io/package/fs-extra-promise.md) ^1.0.1
- [refactoring-codemods](https://npm.io/package/refactoring-codemods.md) ^0.3.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.9 (latest) — 2018-01-03
- 0.0.8 — 2018-01-03
- 0.0.7 — 2018-01-03
- 0.0.6 — 2017-12-29
- 0.0.5 — 2017-12-29
- 0.0.4 — 2017-12-29
- 0.0.3 — 2017-12-29
- 0.0.2 — 2017-12-29
- 0.0.1 — 2017-12-29

## 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 <file>                 split one file into a folder with files for each export
  esm-refactor move-file <source> <target>  move a file with ES modules

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

---
_Source: https://npm.io/package/esm-refactor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
