- Toison
Toison presents a JSON file as a heatmap representing the relative size of all its members. This should help you find bottlenecks and optimize your JSON files.
[[file:images/example.png]]
** Installation
To install Toison, you need the [[https://www.rust-lang.org/en-US/install.html][Rust compiler]]. You can then build toison using =cargo=, the Rust build tool:
+begin_src bash
cargo install toison
+end_src
** Usage
+begin_src
Usage: toison [OPTIONS]
Arguments:
Options:
-t, --threshold hide nodes under this percentge of the total size [default: 0]
-m, --max-depth the maximum depth to render; if negative, counts from the deepest node
-u, --unit the unit with which to weight nodes [default: bytes] [possible values: bytes, children]
-c, --colors how to colorize output [default: hellscape] [possible values: hellscape, gradient, monochrome, none]
-h, --help Print help information
-V, --version Print version information
+end_src