# jasat

> Tools for code moderation, transformation, or use for maintain JavaScript stuff related.

Latest version **0.1.2** (published 2022-02-28) · MIT license · 0 weekly downloads

## Install

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

Provides the command `jasat`.

## 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.1.2 |
| Published | 2022-02-28 |
| First published | 2022-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ri7nz |
| Maintainers | ri7nz |

## Links

- npm: https://www.npmjs.com/package/jasat
- Repository: https://github.com/ri7nz/jasat
- Issues: https://github.com/ri7nz/jasat/issues
- npm.io page: https://npm.io/package/jasat

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^7
- [meow](https://npm.io/package/meow.md) ^5
- [equivalent-exchange](https://npm.io/package/equivalent-exchange.md) ^1

## Recent versions

- 0.1.2 (latest) — 2022-02-28
- 0.1.1 — 2022-02-28
- 0.1.0 — 2022-02-26
- 0.0.1 — 2022-02-26
- 0.0.0 — 2022-02-25

## README

<p align="center">
  <img alt="jasat overview" src="https://raw.githubusercontent.com/ri7nz/jasat/main/.github/docs/jasat.gif"/>
  <label><strong>Tools for code moderation, transformation, or use for maintain JavaScript stuff related.</strong></label>
</p>

<p align="center">
  <a alt="CI Release status" target="_blank" href="https://github.com/ri7nz/jasat/actions/workflows/release.yml">
    <img alt="CI Release status" src="https://github.com/ri7nz/jasat/actions/workflows/release.yml/badge.svg" />
  </a>  • 
  <a alt="NPM jasat version" target="_blank" href="https://npmjs.com/package/jasat">
    <img alt="NPM jasat version" src="https://badgen.net/npm/v/jasat?color=green" />
  </a>
</p>

<p align="center">
  <a href="#use-case">Use case</a> • 
  <a href="#Usage">Usage</a> • 
  <a href="#special-thanks">Special Thanks</a> • 
  <a href="#Alternative">Alternative</a> • 
  <a href="#Contribution">Contribution</a> • 
  <a href="#License">License</a>
</p>

## Use case

- find and replace some code.
- remove some code (like `console.log`).

## Usage

### Using with `npx`

```console

npx jasat <TRANSFORM> [OPTIONS]

```

### Using as development dependencies

#### add in `devDependencies`

```console

yarn add -D jasat

```

#### run

```console

yarn jasat <TRANSFORM> [OPTIONS]

```

### Transforms

| Name                    | OPTIONS     |
| ----------------------- | ----------- |
| `import-source-replace` | "FROM" "TO" |
| `remove-console`        | -           |

### Command OPTIONS

```console

  Tools for code moderation, transformation, or use for maintain JavaScript stuff related.

  USAGE
    npx jasat <TRANSFORM> <...OPTIONS>

  OPTIONS
    --write, -w         Allow to modified target file.
    --cwd, -C           Set current working directory (default: `process.cwd()`).
    --help, -h          Print help.
    --list, -l          Print list of TRANSFORM.
    --version, -v       Print version.

```

### Example

```console

npx jasat import-source-replace "react" "preact" // dry-run
npx jasat import-source-replace "react" "preact" --write // write to system or target files

```

## Special Thanks

- [**equivalent-exchange**](https://github.com/suchipi/equivalent-exchange) - Transmute one JavaScript string into another by way of mutating its AST. Powered by babel and recast.

## Alternative

- [**jscodeshift**](https://github.com/facebook/jscodeshift) - A JavaScript codemod toolkit.
- [**comby**](https://github.com/comby-tools/comby) - A tool for structural code search and replace that supports ~every language.

## Contribution

### Making pull requests

- Use [**conventional-commits**](https://www.conventionalcommits.org/en/v1.0.0/) before make a pull request.

## License

**MIT**

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