rmcache
v1.2.1
Published
💨 Remove frontend junk files.
Downloads
455
Readme
English | 中文
Introduction
rmcache is a CLI tool that helps you quickly clean up frontend project junk files and cache directories. It's perfect for freeing up disk space or preparing your project for sharing.
Installation
npx rmcacheCommand Options
| Option | Description | Example |
|--------|-------------|---------|
| [framework] | Specify framework to clean only framework-related cache files. Currently supports nuxt | rmcache nuxt |
| -c, --cwd <path> | Specify working directory to clean junk files in | rmcache -c /path/to/project |
| --lock | Include lock files in cleanup (not included by default) | rmcache --lock |
| --help | Display help information | rmcache --help |
| --version | Display version number | rmcache --version |
Usage Examples
Clean Current Project
Run the command in your project directory to clean all junk files:
npx rmcacheClean Lock Files
By default, lock files are NOT cleaned. Use the --lock flag to include them:
npx rmcache --lockClean Specific Framework
Clean cache files for a specific framework. Currently supports nuxt:
npx rmcache nuxtWhen using framework mode, rmcache will only clean:
node_modules- dependencies.nuxt- Nuxt cache directory.output- Nuxt build output
This mode is useful for monorepos where you only want to clean Nuxt-related files.
What Gets Cleaned?
Directories
rmcache removes the following directories:
node_modules- npm/pnpm dependenciesdist- build output.nuxt- Nuxt.js cache.next- Next.js cache.output- Nitro build outputjspm_packages- JSPM dependenciesweb_modules- Snowpack dependencies.cache- generic cache.parcel-cache- Parcel bundler cache.vuepress/dist- VuePress build output.temp- temporary files.svelte-kit- SvelteKit.docusaurus- Docusaurus.serverless- Serverless Framework.fusebox- FuseBox bundler.dynamodb- DynamoDB Local.firebase- Firebase.tern-port- Tern.turbo- Turbo cache
Lock Files
rmcache also removes package manager lock files:
package-lock.json- npmpnpm-lock.yaml- pnpmyarn.lock- yarnbun.lockb- bundeno.lock- denovlt.json- vlt
License
MIT License © lonewolfyx
