{"id":15069846,"url":"https://github.com/hua1995116/shark-cleaner","last_synced_at":"2025-06-23T06:34:41.543Z","repository":{"id":51560857,"uuid":"247458281","full_name":"hua1995116/shark-cleaner","owner":"hua1995116","description":"A cleaning tool to help you quickly clear cache garbage.","archived":false,"fork":false,"pushed_at":"2022-12-30T19:55:43.000Z","size":597,"stargazers_count":52,"open_issues_count":7,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T14:46:02.612Z","etag":null,"topics":["cleaner","cli","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hua1995116.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-15T12:03:19.000Z","updated_at":"2025-01-03T06:50:18.000Z","dependencies_parsed_at":"2023-01-31T15:15:30.677Z","dependency_job_id":null,"html_url":"https://github.com/hua1995116/shark-cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fshark-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fshark-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fshark-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2Fshark-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hua1995116","download_url":"https://codeload.github.com/hua1995116/shark-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248259850,"owners_count":21074207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cleaner","cli","nodejs"],"created_at":"2024-09-25T01:45:06.918Z","updated_at":"2025-04-10T17:03:11.485Z","avatar_url":"https://github.com/hua1995116.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shark-cleaner\n\nA cleaning tool to help you quickly clear cache garbage.\n\n[中文文档](./zh-CN.md)\n\n[English](./)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://npmcharts.com/compare/shark-cleaner?minimal=true\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/shark-cleaner.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/shark-cleaner\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/shark-cleaner.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/shark-cleaner\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/shark-cleaner.svg?style=flat\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Origin\n\n![1584517625611.jpg](https://s3.qiufengh.com/blog/1584517625611.jpg)\n\nThe 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\n\n\n## Usage\n\nNode \u003e= 10.10.0\n\n```bash\nnpm install -g shark-cleaner\n\nshark\n```\n\n## Effect Demo\n\nvideo demo: https://s3.qiufengh.com/shark-cleaner/shark-cleaner.mp4\n\n\u003cimg src=\"https://s3.qiufengh.com/shark-cleaner/shark-init.jpg\" width=\"300\"/\u003e\n\n\u003cimg src=\"https://s3.qiufengh.com/shark-cleaner/shark-scanner.jpg\" width=\"300\"/\u003e\n\n\u003cimg src=\"https://s3.qiufengh.com/shark-cleaner/shark-computed.jpg\" width=\"300\"/\u003e\n\n\n## Features\n\n1. Support cleaning node_modules, nvm, npm cache\n2. Support i18n\n\n## TODO\n\n1. ~~Support yarn cache cleanup~~\n2. electron client development\n3. More other language cache cleaning (such as go cache, pip cache)\n4. Unit test\n\n\n## Cache List\n\n| Language | cache list     | Mac directory         |  Windows directory        | related                                   |\n| ---- | ------------ | ---------------------- | -------------------------------- | ---------------------------------------- |\n| Node | npm          | ~/.npm                 | \\$HOME/AppData/Roaming/npm-cache | https://github.com/shinnn/npm-cache-path |\n|      | node_modules | \\$peoject/node_modules | \\$peoject/node_modules           |                                          |\n|      | nvm          | ~/.nvm/versions/node   | \\$HOME/AppData/Roaming/nvm       |                                          |\n|      | yarn         | ~/Library/Caches/Yarn  | \\$HOME/AppData/Local/Yarn/Cache  |                                          |\n\n\n## Need help\n\nHope to provide the path of the mainstream language cache package (such as go, python, etc.)\n\n## Thanks\n\nAnimation Support(https://codepen.io/kevin_David_k/pen/eYNeQVY)\n\n## Contribution\n\n```bash\ngit clone https://github.com/hua1995116/shark-cleaner.git\n\nnpm install\n\nnode cli/index.js\n```\nanother bash\n\n```bash\ncd client\n\nnpm install\n\nnpm run dev\n```\n\nOpen: http://localhost:1234/\n\n## License\n\nCopyright (c) 2020 蓝色的秋风 (hua1995116) Licensed under the MIT license.\n\n## Wechat Group\n\n\u003cimg src=\"https://s3.qiufengh.com/blog/WechatIMG713.jpeg\" width=\"300\"/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhua1995116%2Fshark-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhua1995116%2Fshark-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhua1995116%2Fshark-cleaner/lists"}