Skip to content

This is a Node.js project that can clean up all redundant 'node_modules' folders in the working directory using the 'rimraf' library

License

Notifications You must be signed in to change notification settings

dext7r/deletenodemodules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeleteNodeModules

DeleteNodeModules 是一个用于清理工作目录中所有多余的 node_modules 文件夹的 Node.js 脚本。

安装

全局安装

npm

npm install -g @h7ml/deletenodemodules

yarn

yarn global add @h7ml/deletenodemodules

pnpm

pnpm install -g @h7ml/deletenodemodules

局部安装

npm install @h7ml/deletenodemodules

使用方法

全局安装后,在命令行中输入 deletenodemodules 命令即可运行脚本:

deletenodemodules

脚本将在工作目录中查找所有的 node_modules 文件夹,并删除它们。

开发

如果你想要对 DeleteNodeModules 进行开发或进行本地测试,则可以从 GitHub 上将项目克隆到本地:

git clone https://github.com/h7ml/DeleteNodeModules.git

安装依赖

npm install

运行脚本

npm run start

许可证MIT

详见 LICENSE 文件。

About

This is a Node.js project that can clean up all redundant 'node_modules' folders in the working directory using the 'rimraf' library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published