Skip to content

delehef/toison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

images/example.png

Installation

To install Toison, you need the Rust compiler. You can then build toison using cargo, the Rust build tool:

cargo install toison

Usage

Usage: toison [OPTIONS] <JSON_FILE>

Arguments:
  <JSON_FILE>

Options:
  -t, --threshold <THRESHOLD>  hide nodes under this percentge of the total size [default: 0]
  -m, --max-depth <MAX_DEPTH>  the maximum depth to render; if negative, counts from the deepest node
  -u, --unit <UNIT>            the unit with which to weight nodes [default: bytes] [possible values: bytes, children]
  -c, --colors <COLORS>        how to colorize output [default: hellscape] [possible values: hellscape, gradient, monochrome, none]
  -h, --help                   Print help information
  -V, --version                Print version information

License

Toison is distributed under the GPL-compatible EUPL v1.2 license.

Changelog

1.1.0

  • Add several color schemes
  • Add the max-depth flag

About

A JSON size visualizer

Resources

License

Stars

Watchers

Forks

Packages

No packages published