Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install treereduce-javascript
It will make the treereduce-javascript command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall treereduce-javascript uninstalls.
Back to the crate overview .
Readme
treereduce
treereduce is a fast, parallel, syntax-aware test case reducer based on
tree-sitter grammars. In other words, treereduce helps you shrink structured
data (especially source code) while maintaining some property of interest, for
example, that the program causes a compiler crash or outputs a certain message.
See the documentation for more information. Documentation is also
available online .