Skip to content

npm package for finding old node_modules directories wasting disk space

Notifications You must be signed in to change notification settings

henrycatalinismith/toad_modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨🍄 toad_modules 🍄✨

Scans a directory recursively for node_modules directories and reports how much disk space each one is using.

screencast of usage

Installation

npm install -g toad_modules

Usage

toad_modules ~/Documents

I'm Feeling Lucky

This little one-liner will quietly delete every node_modules directory anywhere within your current working directory. It's a dangerous, destructive operation, so please consult your horoscope before copypasting this into your terminal.

toad_modules | grep -v TOTAL | awk '{ print $2; }' | xargs rm -r

It won't ask you if you're sure first. It will begin deleting almost immediately. But you seem like you know what you're doing, so go for it 👍

Contributing

Contributors are subject to version 1.4 of the Contributor Covenant.

License

toad_modules is released under the MIT License.

About

npm package for finding old node_modules directories wasting disk space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published