Skip to content

⚡ 💾 Node script to remove `node_modules` folder of inactive projects.

License

Notifications You must be signed in to change notification settings

varbrad/node-wipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ 💾 node-wipe

Node script to remove node_modules folder of inactive projects.

Install

npm install node-wipe -g

Usage

Patterns

node-wipe
node-wipe [path]
node-wipe [days]
node-wipe [path] [days]

Examples

node-wipe

Will wipe all subdirectories within the current working directory of their node_modules if the project was last modified longer ago than 30 days.

node-wipe ./dev/

Will wipe all subdirectories within the 'dev' folder of their node_modules if the project was last modified within 30 days.

node-wipe 10

Will wipe all subdirectories within the current working directory of their node_modules if the project was last modified longer ago than 10 days.

node-wipe ./dev/ 10

Will wipe all subdirectories within the 'dev' folder of their node_modules if the project was last modified within 10 days.

Parameters

All parameters are optional.

path

Default = "."

A relative or absolute path to a directory.

days

Default = 30

The number of days to consider a project 'inactive' and remove the node_modules from if it has not been modified for this long.

force

Default = false

Usage -f, --force

Whether to automatically accept the warning messages.

About

⚡ 💾 Node script to remove `node_modules` folder of inactive projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published