Skip to content

xsadia/rskill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

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