UNPKG

purify-code

Version:

A CLI tool to remove console.log, debugger, and comments from JS/TS files

55 lines (33 loc) โ€ข 999 B
# purify-code ๐Ÿงน ![npm](https://img.shields.io/npm/v/purify-code) ![license](https://img.shields.io/npm/l/purify-code) ![downloads](https://img.shields.io/npm/dt/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)