Skip to main content

Crate null_e

Crate null_e 

Source
Expand description

ยงnull-e ๐Ÿค–

The Friendly Disk Cleanup Robot - Send your cruft to /dev/null!

null-e helps developers reclaim disk space by finding and cleaning development artifacts like node_modules, target, .venv, and 30+ more.

ยงFeatures

  • Multi-language support: Node.js, Rust, Python, Go, Java, .NET, Swift, and more
  • Git integration: Protects uncommitted changes
  • Trash support: Safe deletion with recovery option
  • Parallel scanning: Fast directory traversal
  • Interactive TUI: Beautiful terminal interface
  • Docker support: Clean dangling images and volumes

ยงQuick Start

use null_e::prelude::*;

// Create a scanner with default plugins
let registry = PluginRegistry::with_builtins();
let scanner = ParallelScanner::new(std::sync::Arc::new(registry));

// Scan a directory
let config = ScanConfig::new("/path/to/projects");
let result = scanner.scan(&config).unwrap();

println!("Found {} projects with {} cleanable",
    result.projects.len(),
    humansize::format_size(result.total_cleanable, humansize::BINARY)
);

ยงArchitecture

null-e uses a plugin-based architecture where each language/framework is handled by a dedicated plugin. Plugins implement the Plugin trait and register themselves with the PluginRegistry.

     .---.
    |o   o|
    |  ^  |    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    | === |    โ”‚    CLI/TUI      โ”‚
    `-----'    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
     /| |\              โ”‚
               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
               โ”‚   Core Engine   โ”‚
               โ”‚  - Scanner      โ”‚
               โ”‚  - Cleaner      โ”‚
               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                        โ”‚
               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
               โ”‚ Plugin Registry โ”‚
               โ”‚  - Node.js      โ”‚
               โ”‚  - Rust         โ”‚
               โ”‚  - Python       โ”‚
               โ”‚  - ...          โ”‚
               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Modulesยง

analysis
Analysis modules for deeper codebase insights
cache
Scan result caching for faster subsequent scans
caches
Global developer cache detection and cleaning
cleaners
Specialized cleanup modules for different development environments
config
Configuration management
core
Core types and traits for DevSweep
docker
Docker integration for cleaning containers, images, and volumes
error
Error handling for DevSweep
git
Git integration for safety checks
plugins
Plugin system for DevSweep
prelude
Prelude module for convenient imports
scanner
Parallel filesystem scanner
trash
Trash support - safe deletion with recovery
tui
Terminal User Interface

Constantsยง

NAME
Package name
VERSION
Version information