node-prune
Remove unnecessary files from node_modules (.md .ts ...)
guide
Structures
Prune
```rust
use std::fs;
use std::collections::HashSet;
struct Stats {
totalfiles: i64,
filesremoved: i64,
total_size: i64,
}
struct Config {
verbose: bool,
progress: bool,
}
struct Prune {
dir: String,
dirs: HashSet,
exts: HashSet,
files: HashSet,
}
```
Roadmap
v0.0.1
- [x] first implementation
- [x] parsing command line arguments
- [x] add log
- [x] communicating with human
- [x] nicer error reporting
- [x] unit test TDD
- [x] 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