purify-code
v1.0.1
Published
A CLI tool to remove console.log, debugger, and comments from JS/TS files
Maintainers
Readme
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.logdebugger// comments,/* comments */- TODO / FIXME notes
From JavaScript and TypeScript files.
📦 Installation
You can use it directly with npx:
npx purify-code ./src
📦 Install Globally
npm install -g purify-codeUsage
purify-code ./your-folderExample
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([email protected])
