#node-modules #nodejs #lang #cli #delete #size #nuke

nightly bin+lib uklid

Interactively delete node_modules

4 releases (2 breaking)

Uses new Rust 2021

0.3.0 May 7, 2022
0.2.0 Apr 28, 2022
0.1.1 Apr 19, 2022
0.1.0 Apr 18, 2022

#38 in #nodejs

Download history 37/week @ 2022-04-14 9/week @ 2022-04-21 49/week @ 2022-04-28 50/week @ 2022-05-05 68/week @ 2022-05-12 19/week @ 2022-05-19 9/week @ 2022-05-26 36/week @ 2022-06-02 1/week @ 2022-06-09 4/week @ 2022-06-16

54 downloads per month

MIT license

14KB
227 lines

Uklid 🧹

GitHub Workflow Status Crates.io Crates.io codecov

Uklid (pronounced [uːklɪt], "cleanup" in Czech) is an interactive CLI node_modules cleaner written in Rust. It looks for top-level node_modules in your computer, shows you their size and allows you to delete them conveniently.

Installation

cargo install uklid

Usage

uklid 0.2.0
Atris <vacekj@outlook.com>
Interactively delete node_modules.

Run without options for interactive mode

USAGE:
    uklid [OPTIONS]

OPTIONS:
    -d, --dry            Don't delete anything, only print found directories
    -h, --help           Print help information
    -p, --path <PATH>    Path to start recursive search for node_modules from
    -V, --version        Print version information

Features

  • recursively search your home directory for node_modules
  • limit search to a specific directory
  • show sizes and last modified time
  • multi-select what you want to delete
  • show total storage freed up
  • non-interactive mode (uklid --help)
  • high test coverage for both interactive and non-interactive mode

Roadmap

  • Stop recursive search upon hitting top-level node_modules
    • Currently we search all subdirectories, which is inefficient
  • better searching algorithm
  • multi-threaded searching and cleaning

Dependencies

~6–41MB
~690K SLoC