3 unstable releases
0.4.0 | Jan 29, 2025 |
---|---|
0.3.1 | Jan 28, 2025 |
0.3.0 | Jan 28, 2025 |
#1105 in Command line utilities
301 downloads per month
27KB
585 lines
rskill is a clone of npkill, written in Rust for study purposes. It allows you to quickly find and delete node_modules
directories to free up disk space. While it tries to follow the same CLI API as npkill
, it does not implement all of it's features. User discretion is advised when deleting directories.
Features
- 🚀 Fast: Slightly faster than the original
npkill
(though not streamed directly to the terminal and some features are missing such as automatic updates, bg color customization etc.). - 🎯 Same CLI API: Supports the same command-line flags as
npkill
for familiarity. - 🛠 Study Project: Written in Rust as a learning exercise.
Options
ARGUMENT | DESCRIPTION |
---|---|
-d, --directory | Set the directory from which to begin searching. By default, starting-point is . |
-D, --delete-all | Automatically delete all node_modules folders that are found. Suggested to be used together with -x . |
-E, --exclude | Exclude directories from search (directory list must be inside double quotes "", each directory separated by ',' ) Example: "ignore1, ignore2" |
-f, --full | Start searching from the home of the user (example: "/home/user" in linux) |
--gb | Show folders in Gigabytes instead of Megabytes. |
-h, --help, ? | Show this help page and exit |
-s, --sort | Sort results by: size , path or last-mod |
-t, --target | Specify the name of the directories you want to search (by default, is node_modules) |
-x, --exclude-hidden-directories | Exclude hidden directories ("dot" directories) from search. |
-V, --version | Show rskill version |
Installation
You can install rskill
via Cargo:
cargo install rskill
or download the latest release from Releases and add the binary to your system's PATH.
wget https://github.com/xsadia/rskill/releases/download/v0.1.0/rskill-linux-x86_64.tar.gz
tar -xzf rskill-linux-x86_64.tar.gz
sudo mv rskill /usr/local/bin
Acknowledgments
- Inspired by npkill.
Dependencies
~11–22MB
~321K SLoC