https://github.com/olegkron/dependency-cleaner
A shell script for easy dependencies cleanup.
https://github.com/olegkron/dependency-cleaner
cli nodejs productivity python3 shell shell-script storage utility
Last synced: 12 months ago
JSON representation
A shell script for easy dependencies cleanup.
- Host: GitHub
- URL: https://github.com/olegkron/dependency-cleaner
- Owner: olegkron
- License: mit
- Created: 2023-02-01T11:49:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T17:32:08.000Z (about 2 years ago)
- Last Synced: 2025-06-10T12:43:44.255Z (about 1 year ago)
- Topics: cli, nodejs, productivity, python3, shell, shell-script, storage, utility
- Language: Shell
- Homepage:
- Size: 3.69 MB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dependency Cleaner
A shell script to easily delete dependency folders in a given directory and its subdirectories. A great tool to free up disk space by removing unnecessary node_modules, .cache, pycache, target, venv, env, go/pkg folders.
[](https://github.com/olegkron/dependency-cleaner/stargazers) [](https://github.com/olegkron/dependency-cleaner/network/members) [](https://github.com/olegkron/dependency-cleaner/graphs/contributors) [](https://github.com/olegkron/dependency-cleaner/issues) [](https://github.com/olegkron/dependency-cleaner/blob/main/LICENSE)

## π Features
- π Recursively searches for the following folders in the input directory: "node_modules", ".cache", "pycache". "target", "venv". "env", "go/pkg" (any of them can be added or removed)
- π Displays the total size of each folder
- π½ Calculates the total space saved
- π₯οΈ Works on Linux and MacOS
## π» Usage
The script can be executed using the following command in the terminal:
`./dependency-cleaner.sh [directory_path] [max_depth]`
- `directory_path`: Required. The directory to search for node_modules folders.
- `max_depth`: Optional. Sets maximum depth to search for node_modules folders. Default is 3.
## Star History
[](https://star-history.com/#olegkron/dependency-cleaner&Date)
## π Contributing
If you have any suggestions for improvements or find any bugs, feel free to open a pull request or an issue.
## π₯ Authors
- **Oleg Kron**Β -Β [olegkron](https://github.com/olegkron)
## π License
This project is licensed under the MIT License - see theΒ [LICENSE](https://github.com/olegkron/node_modules_remover/blob/main/LICENSE)Β file for details.