https://github.com/hua1995116/shark-cleaner
A cleaning tool to help you quickly clear cache garbage.
https://github.com/hua1995116/shark-cleaner
cleaner cli nodejs
Last synced: 5 months ago
JSON representation
A cleaning tool to help you quickly clear cache garbage.
- Host: GitHub
- URL: https://github.com/hua1995116/shark-cleaner
- Owner: hua1995116
- License: mit
- Created: 2020-03-15T12:03:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:55:43.000Z (almost 3 years ago)
- Last Synced: 2025-03-24T14:46:02.612Z (8 months ago)
- Topics: cleaner, cli, nodejs
- Language: JavaScript
- Homepage:
- Size: 583 KB
- Stars: 52
- Watchers: 1
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shark-cleaner
A cleaning tool to help you quickly clear cache garbage.
[中文文档](./zh-CN.md)
[English](./)
## Origin

The origin of this project is because my computer has insufficient disks. I used some cleaning tools, but still couldn't clean up a lot of space for me. I'm a front-end development engineer, so I thought of a lot of `node_modules` in my working directory. Therefore, I developed a visual tool for cleaning `node_modules`. Of course, it will not only clean up `node_modules`. Its positioning is to clear all project caches. Currently it only supports cleaning `node_modules`, but it has saved me 20GB of space
## Usage
Node >= 10.10.0
```bash
npm install -g shark-cleaner
shark
```
## Effect Demo
video demo: https://s3.qiufengh.com/shark-cleaner/shark-cleaner.mp4



## Features
1. Support cleaning node_modules, nvm, npm cache
2. Support i18n
## TODO
1. ~~Support yarn cache cleanup~~
2. electron client development
3. More other language cache cleaning (such as go cache, pip cache)
4. Unit test
## Cache List
| Language | cache list | Mac directory | Windows directory | related |
| ---- | ------------ | ---------------------- | -------------------------------- | ---------------------------------------- |
| Node | npm | ~/.npm | \$HOME/AppData/Roaming/npm-cache | https://github.com/shinnn/npm-cache-path |
| | node_modules | \$peoject/node_modules | \$peoject/node_modules | |
| | nvm | ~/.nvm/versions/node | \$HOME/AppData/Roaming/nvm | |
| | yarn | ~/Library/Caches/Yarn | \$HOME/AppData/Local/Yarn/Cache | |
## Need help
Hope to provide the path of the mainstream language cache package (such as go, python, etc.)
## Thanks
Animation Support(https://codepen.io/kevin_David_k/pen/eYNeQVY)
## Contribution
```bash
git clone https://github.com/hua1995116/shark-cleaner.git
npm install
node cli/index.js
```
another bash
```bash
cd client
npm install
npm run dev
```
Open: http://localhost:1234/
## License
Copyright (c) 2020 蓝色的秋风 (hua1995116) Licensed under the MIT license.
## Wechat Group
