Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valsaven/npkl
npkl: Node Package Killer
https://github.com/valsaven/npkl
frontend nodejs nodemodules npkill npkl npm rust
Last synced: 9 days ago
JSON representation
npkl: Node Package Killer
- Host: GitHub
- URL: https://github.com/valsaven/npkl
- Owner: valsaven
- License: mit
- Created: 2022-11-01T20:09:56.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T16:46:56.000Z (7 months ago)
- Last Synced: 2024-04-26T15:56:21.732Z (7 months ago)
- Topics: frontend, nodejs, nodemodules, npkill, npkl, npm, rust
- Language: Rust
- Homepage: https://crates.io/crates/npkl
- Size: 41 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
rustup update
cargo install npkl
```### Local Building
Clone this repo and then:
```bash
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](./LICENSE) for details.