purify-code
Version:
A CLI tool to remove console.log, debugger, and comments from JS/TS files
55 lines (33 loc) โข 999 B
Markdown
# purify-code ๐งน
  
๐งน A simple CLI to clean your JS/TS files by removing `console.log`, `debugger`, comments, and TODOs.
A CLI tool to remove:
- `console.log`
- `debugger`
- `// comments`, `/* comments */`
- TODO / FIXME notes
From JavaScript and TypeScript files.
---
## ๐ฆ Installation
You can use it directly with `npx`:
```bash
npx purify-code ./src
```
## ๐ฆ Install Globally
```bash
npm install -g purify-code
```
## Usage
```bash
purify-code ./your-folder
```
## Example
```bash
purify-code ./src
```
- Cleans .js and .ts files recursively
- Useful before production or committing code
## ๐ Safe
Does not minify or rewrite logic โ just removes obvious debug stuff.
### ๐งโ๐ป Author
Built with โค๏ธ by Manindra Bollam(manindra810@gmail.com)