#printing #json #numbers #run #run-command

pretty-printing

A simple pretty print implementation

4 releases

0.0.4 Oct 26, 2024
0.0.3 Oct 26, 2024
0.0.2 Oct 26, 2024
0.0.1 Oct 26, 2024

#134 in Value formatting

Download history 214/week @ 2024-10-21 37/week @ 2024-10-28

251 downloads per month

MIT/Apache

12KB
167 lines

Pretty printing

A simple implementation based on Justin's blog

There are a couple of json files in examples folder. You can run the command below to check the output.

cargo run --release --example json examples/4.json 40 # the last number is the printing line max_width.

Dependencies

~36KB