UNPKG

purify-code

Version:

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

14 lines (10 loc) 345 B
#!/usr/bin/env node import { cleanFolder } from "../lib/cleaner.js"; import path from "path"; const targetPath = process.argv[2]; if (!targetPath) { console.error("❌ Please provide a folder path.\nUsage: purify-code ./src"); process.exit(1); } const absPath = path.resolve(process.cwd(), targetPath); cleanFolder(absPath);