Skip to content
/ nmkill Public

📦 Interactive CLI to delete node_module directories

License

Notifications You must be signed in to change notification settings

moaqz/nmkill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmkill

A tool to find and delete node_modules directories. It helps recover disk space by identifying and removing unused dependency folders.

Installation

Download the latest binary for your platform from the releases page

For example, on Linux:

curl -fsSL https://github.com/moaqz/nmkill/releases/download/v0.1.0/nmkill_0.1.0_linux_amd64 -o nmkill
chmod u+x nmkill
./nmkill

Usage

Run nmkill in the directory you want to scan:

nmkill

By default, it scans the current working directory. To scan a different path, use the -d flag:

nmkill -d /

Interactive mode

After scanning, nmkill displays a numbered list of found node_modules folders with their size and last modification time.

You can then enter:

  • A single number (e.g. 3)
  • A comma-separated list (e.g. 1,3,5)
  • The word all to select all
  • q to quit

Warning

The tool will ask for confirmation before deleting any folder.

About

📦 Interactive CLI to delete node_module directories

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published