3 stable releases

1.0.2 Jan 22, 2024
1.0.1 Oct 25, 2023
1.0.0 Dec 2, 2022

#192 in Filesystem

Download history 21/week @ 2024-01-19 1/week @ 2024-02-09 25/week @ 2024-02-16 28/week @ 2024-02-23 10/week @ 2024-03-01 1/week @ 2024-03-08 1/week @ 2024-03-15 42/week @ 2024-03-29 10/week @ 2024-04-05

52 downloads per month

MIT license

11KB
122 lines

npkl: Node Package Killer

A handy tool to identify and remove node_modules directories. Written in Rust for blazing fast performance.

This utility recursively searches for node_modules directories from the point it's launched, presents a menu to review, select, and delete the ones you don't need to free up space.

Features

  • Recursively search for node_modules directories.
  • Review the path and size of each found directory.
  • Selectively delete unwanted node_modules directories with a simple interface.

Building

To build it from source you need Rust 1.73 or later, preferably via rustup.

Global Installation

rustup update
cargo install npkl

Local Building

Clone this repo and then:

cargo build --release
# Optionally, you can compress the executable file (Windows example, reduces the file size from ~338KB to ~123KB):
upx --best --lzma target/release/npkl

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~1.3–9MB
~80K SLoC