Crates.io | termcolor-json |
lib.rs | termcolor-json |
version | 1.0.0 |
source | src |
created_at | 2021-08-09 22:29:56.084078 |
updated_at | 2022-01-01 01:36:18.949048 |
description | A library for writing colored JSON output to a termcolor terminal. |
homepage | |
repository | https://github.com/andrewhickman/termcolor-json |
max_upload_size | |
id | 433998 |
size | 24,765 |
A library for writing colored JSON output to a termcolor terminal.
let stdout = StandardStream::stdout(ColorChoice::Auto);
termcolor_json::to_writer(
&mut stdout.lock(),
&serde_json::json!({
"string": "value",
"number": 123,
"bool": true,
"null": null,
}),
)?;
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.