Skip to content

一个用于清理node_modules目录的Rust命令行工具

License

Notifications You must be signed in to change notification settings

0ldm0s/npm_cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm_cleaner

一个用于清理node_modules目录的Rust命令行工具

功能特性

  • 递归扫描指定目录下的所有node_modules文件夹
  • 自动跳过已发现的node_modules子目录
  • 交互式确认删除
  • 实时进度条显示
  • 错误收集和报告

安装

cargo install --path .

使用方法

npm_cleaner --target <目录路径> [--force]

参数说明

  • -t, --target <DIR>: 必需,指定要扫描的目标目录
  • -f, --force: 可选,跳过确认直接删除

示例

  1. 扫描并交互确认删除:
npm_cleaner -t ./projects
  1. 强制删除不确认:
npm_cleaner -t ./projects -f

构建

cargo build --release

运行测试

cargo test

许可证

GPL-3.0

About

一个用于清理node_modules目录的Rust命令行工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages