-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick RSS Feed: 轻松释放存储空间:使用 NPKILL 一键清理过时的 node_modules 文件夹 #38
- Loading branch information
1 parent
86939de
commit 639daa1
Showing
9 changed files
with
237 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
轻松释放存储空间:使用 NPKILL 一键清理过时的 node_modules 文件夹 | ||
=== | ||
|
||
NPKILL 是一个非常实用的命令行工具,专门帮助开发者清理系统中的 `node_modules` 目录,从而释放大量空间。如果你经常在本地运行 Node.js 项目,你可能已经注意到这些 `node_modules` 文件夹会随着时间堆积,浪费了大量的存储空间。NPKILL 解决了这个问题,让你轻松找到并删除不再需要的 `node_modules` 文件夹。 | ||
|
||
![image](https://github.com/user-attachments/assets/41b0ea83-c684-4be4-9798-3b7476c630a5) | ||
|
||
https://github.com/user-attachments/assets/bfd81005-fe4a-4341-9ab7-3a489c98aa4c?rehype=video | ||
|
||
### 工具亮点: | ||
|
||
1. **释放空间**:NPKILL 能够列出你系统中的所有 `node_modules` 文件夹,显示它们占用的空间,并让你选择删除,从而清理系统中的垃圾文件。 | ||
2. **高效快速**:NPKILL 是用 TypeScript 编写的,搜索速度极快,优化了性能,让清理工作变得更为轻松。 | ||
3. **简易操作**:只需简单几个按键即可删除文件夹。通过上下箭头移动选择,按 `Space` 或 `Del` 键删除选中的 `node_modules`,使用体验非常顺畅。 | ||
4. **多样化功能**:NPKILL 支持按路径或大小排序,支持从指定目录开始扫描,还可以通过参数过滤不需要删除的文件夹。 | ||
|
||
### 安装与使用: | ||
|
||
你可以直接通过 `npx` 命令使用 NPKILL,甚至无需安装: | ||
|
||
```bash | ||
npx npkill | ||
``` | ||
|
||
当然,如果你更喜欢全局安装,也可以使用以下命令: | ||
|
||
```bash | ||
npm i -g npkill | ||
``` | ||
|
||
### 操作指南: | ||
|
||
运行命令后,NPKILL 会开始扫描当前目录中的 `node_modules` 文件夹。你可以通过上下箭头(或者 `j` 和 `k` 键)来移动选项,按下 `Space` 或 `Del` 键来删除选中的文件夹。按下 `o` 键可以打开当前选中文件夹的目录,按 `Q` 或 `Ctrl + C` 退出程序。 | ||
|
||
### 注意事项: | ||
|
||
删除某些系统中的 `node_modules` 目录可能会导致应用无法正常工作。NPKILL 会通过 ⚠️ 警示符号标记这些重要文件夹,请在删除时保持谨慎。 | ||
|
||
### 示例: | ||
|
||
删除项目目录中的所有 `node_modules`: | ||
|
||
```bash | ||
npkill -d ~/projects | ||
``` | ||
|
||
列出 `dist` 文件夹并显示错误信息: | ||
|
||
```bash | ||
npkill --target dist -e | ||
``` | ||
|
||
自动删除备份目录中的所有 `node_modules` 文件夹: | ||
|
||
```bash | ||
npkill -d ~/backups/ --delete-all | ||
``` | ||
|
||
### 未来开发计划: | ||
|
||
NPKILL 未来还会推出更多功能,包括进一步提升性能、减少依赖、支持按使用时间筛选文件夹、展示树状目录等。 | ||
|
||
如果你想让你的系统更干净、更高效,NPKILL 是一款非常值得一试的工具! | ||
|
||
👉 https://www.npmjs.com/package/npkill | ||
|
||
--- | ||
|
||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/npkill" target="_blank">🔗 查看链接</a> • | ||
<a href="https://github.com/jaywcjlove/quick-rss/issues/new/choose" target="_blank">投稿/推荐/自荐</a> • | ||
<a href="https://wangchujiang.com/quick-rss/feeds/index.html" target="_blank">Quick RSS</a> • | ||
<a href="https://github.com/jaywcjlove/quick-rss/issues/38" target="_blank">#38</a> • | ||
<a href="https://github.com/jaywcjlove" target="_blank">@jaywcjlove</a> | ||
</p> | ||
|
||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.