# @jforge/ts-cleaner

> A tool for cleaning up JavaScript files compiled from TypeScript

Latest version **1.1.0** (published 2021-07-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jforge/ts-cleaner
pnpm add @jforge/ts-cleaner
yarn add @jforge/ts-cleaner
bun add @jforge/ts-cleaner
```

Provides the command `ts-clean`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-07-28 |
| First published | 2021-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >14.0.0 |
| Dependencies | 2 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jforge |
| Maintainers | jforge |
| Keywords | typescript, javascript, node |

## Links

- npm: https://www.npmjs.com/package/@jforge/ts-cleaner
- Repository: https://github.com/jforge/ts-clean
- Homepage: https://github.com/jforge/ts-clean#readme
- Issues: https://github.com/jforge/ts-clean/issues
- npm.io page: https://npm.io/package/@jforge/ts-cleaner

## Dependencies (2)

- [meow](https://npm.io/package/meow.md) 9.0.0
- [globby](https://npm.io/package/globby.md) ^11.0.4

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-07-28
- 1.0.0 — 2021-07-28

## README

# ts-clean

[![npm](https://img.shields.io/npm/v/ts-clean.svg)](https://www.npmjs.com/package/ts-clean)
[![npm](https://img.shields.io/npm/l/ts-clean.svg)](https://www.npmjs.com/package/ts-clean)

## Overview

> A tool for cleaning up JavaScript files compiled from TypeScript

## Install

```sh
npm install ts-clean --save-dev
```

or

```sh
yarn add ts-clean --dev
```

## Usage

> package.json

```json
{
  ...
  "script": {
    ...
    "clean": "ts-clean"
  }
  ...
}
```

## Options

| Option  | Description                                                 | default                   |
| ------- | ----------------------------------------------------------- | ------------------------- |
| d       | the dir path you need to clean                              | pwd                       |
| e       | the file extension you need to clean                        | .js,.js.map,.jsx,.jsx.map |

## Example

- clean all .js, .js.map files built by TypeScript in the current directory

```sh
ts-clean
```

- clean all js files built by TypeScript in the app1 and app2 directory

```sh
ts-clean -d app1, app2
```

- clean all js files built by TypeScript in the app directory

```sh
ts-clean -d app -e .js
```

## Help

If you installed ts-clean in the global installation environment, you can use `ts-clean --help` for help.

## LICENSE

MIT@[jforge](https://github.com/jforge)

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