@thepushkaraj/noconsole
v1.0.3
Published
A CLI tool to remove console.log statements from codebases
Downloads
11
Maintainers
Readme
noconsole
A CLI tool to remove console.log statements from your codebase.
Installation
npm install -g @thepushkaraj/noconsoleUsage
noconsole <directory> [options]Options
-p, --pattern <pattern>- File pattern to match (default: "**/*.{js,jsx,ts,tsx}")-d, --dry-run- Show what would be removed without making changes
Examples
Remove console.log statements from all JavaScript files in the current directory:
noconsole .Remove console.log statements from all TypeScript files in a specific directory:
noconsole ./src --pattern "**/*.ts"Show what would be removed without making changes:
noconsole . --dry-runFeatures
- Removes all types of console statements (log, debug, info, warn, error)
- Supports JavaScript and TypeScript files
- Ignores node_modules, dist, and build directories by default
- Provides a dry-run option to preview changes
- Shows a summary of removed statements
License
MIT
