Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrycatalinismith/toad_modules
✨🍄 find old node_modules directories 🍄✨
https://github.com/henrycatalinismith/toad_modules
Last synced: about 1 month ago
JSON representation
✨🍄 find old node_modules directories 🍄✨
- Host: GitHub
- URL: https://github.com/henrycatalinismith/toad_modules
- Owner: henrycatalinismith
- Created: 2018-01-13T16:17:01.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T18:35:10.000Z (about 1 year ago)
- Last Synced: 2024-11-11T03:26:36.985Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 150 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
✨🍄 toad_modules 🍄✨
=======================Scans a directory recursively for node_modules directories and reports how much
disk space each one is using.![screencast of usage](https://github.com/hnrysmth/toad_modules/raw/master/demo.gif)
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].
[Contributor Covenant]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[MIT License]: http://www.opensource.org/licenses/MIT