A minimal CLI tool to remove specific entries from the npm cache by regex pattern matching on cache keys. Version 0.0.3, no active release cadence. Simple single-purpose tool with zero dependencies beyond Node.js's built-in modules. Differentiator: allows targeted cache cleanup vs clearing the entire npm cache.
npm install npm-cache-rmNo compatibility data collected yet for this library.
List all cache entries matching 'electron' (dry-run), then remove entries matching the regex pattern for Electron 10.0.0.
Use proper regex escaping, e.g., for exact version use 'electron.*?10\\.0\\.0'.
Run with --dry-run to preview, then remove --dry-run to execute.
Use npm cache ls to verify cache keys before attempting to remove.
Manually verify cache contents with 'npm cache ls' before and after.
Ensure Node.js is in PATH.
Ensure you provide a regex pattern as argument, e.g., 'npm-cache-rm electron'
Use valid regex syntax; escape special characters. Example: 'npm-cache-rm "electron.*?10\\.0\\.0"'
Run on Linux/macOS or use WSL on Windows.
No dependency data recorded yet.