node-prune 0.0.1

Remove unnecessary files from node_modules
Documentation

node-prune

Remove unnecessary files from node_modules (.md .ts ...)

guide

Structures

Prune

use std::fs;
use std::collections::HashSet;

struct Stats {
    total_files: i64,
    files_removed: i64,
    total_size: i64,
}

struct Config {
    verbose: bool,
    progress: bool,
}

struct Prune {
    dir: String,
    dirs: HashSet<String>,
    exts: HashSet<String>,
    files: HashSet<String>,
}

Roadmap

v0.0.1

  • first implementation
  • parsing command line arguments
  • add log
  • communicating with human
  • nicer error reporting
  • unit test TDD
  • add docs
  • intergation test
  • communicating with michines
  • cargo install

v0.0.2

  • async std
  • bench mark
  • release binary file
  • system package manager
  • signal handle
  • exit code
  • add process bar

v0.0.3

  • threadpool