21 releases (13 stable)
1.1.11 | Jun 10, 2024 |
---|---|
1.1.10 | Oct 26, 2023 |
1.1.8 | Sep 12, 2023 |
1.1.7 | Jul 27, 2023 |
0.6.0 | Mar 19, 2023 |
#666 in Command line utilities
26KB
500 lines
ripnode
Simple tool for deleting node_modules and other folders
Inspired by npkill
Installation
Cargo
cargo install ripnode
Usage
By default, it will run in interactive mode, showing a TUI with the folders to delete.
Directory to delete defaults to node_modules, but can be changed with the -n or --name option. Directory search starts from the current directory.
ripnode [OPTIONS]
Options
-d, --dry-run See what would be deleted without actually deleting anything
-n, --name <NAME> The name of the folder to delete [default: node_modules]
--non-interactive Run as CLI, without TUI
-v, --verbose... More output per occurrence
-q, --quiet... Less output per occurrence
-h, --help Print help
-V, --version Print version
Controls
Interactive mode
Key | Action |
---|---|
j, s, ↓ |
Move down |
k, w, ↑ |
Move up |
space, enter |
Delete |
q, esc |
Quit |
Purpose
This is a learning exercise for me to learn Rust and keeping up with its ecosystem.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~10–17MB
~211K SLoC