# refactored

> refactored is a utility that shows how many tasks are done while you are on a huge refactoring.

Latest version **1.0.3** (published 2022-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install refactored
pnpm add refactored
yarn add refactored
bun add refactored
```

Provides the command `refactored`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-05-09 |
| First published | 2022-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Potados |
| Maintainers | potados |
| Keywords | refactoring, progress, milestones |

## Links

- npm: https://www.npmjs.com/package/refactored
- Repository: https://github.com/potados99/refactored
- Homepage: https://github.com/potados99/refactored#readme
- Issues: https://github.com/potados99/refactored/issues
- npm.io page: https://npm.io/package/refactored

## Dependencies (2)

- [commander](https://npm.io/package/commander.md) ^9.2.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.2.11

## Recent versions

- 1.0.3 (latest) — 2022-05-09
- 1.0.2 — 2022-05-09
- 1.0.1 — 2022-05-08
- 1.0.0 — 2022-05-07

## README

# refactored

```
┌─────────┬────────────────────────────┬──────────┬──────────────────────────┐
│ (index) │            name            │ progress │        visualized        │
├─────────┼────────────────────────────┼──────────┼──────────────────────────┤
│    0    │    'Introduce Shebang'     │  '2/10'  │ '[||||                ]' │
│    1    │ 'Remove import statements' │  '9/10'  │ '[||||||||||||||||||  ]' │
└─────────┴────────────────────────────┴──────────┴──────────────────────────┘
```

refactored is a utility that shows how many tasks are done while you are on a huge refactoring.

## Install

```shell
$ npm install -g refactored
```

## Usage

Move into your working directory and run:

```shell
$ refactored
```

or specify the project directory:

```shell
$ refactored --prefix ./my-project
```

You can obtain a whole file path list of those refactored, and those not:

```shell
$ refactored --verbose
```

## Usage without installation

You can run it using `npx` command without installation.

```shell
$ npx refactored
```

## Configurations

refactored requires a configuration file named `.refactoredrc` placed in the working directory.

Here's a full example of `.refactoredrc`:

```json
{
  "tasks": [
    {
      "name": "Remove import statements",
      "filePatterns": [
        "**/*"
      ],
      "ignorePatterns": [
        "node_modules",
        ".git",
        ".idea",
        "package-lock.json"
      ],
      "test": {
        "file-not-includes": "import"
      }
    }
  ]
}
```

For more info, I've brought you a [JSON schema](./refactoredrc.schema.json) for the `.refactoredrc`.


## Test expressions

refactored currently supports two operators(rules):

- `file-includes`: file should contain given string.
- `file-not-includes`: file should not contain given string.

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