6 releases (1 stable)
1.0.0 | Jan 1, 2022 |
---|---|
0.1.4 | Sep 23, 2021 |
0.1.2 | Aug 15, 2021 |
#412 in Command-line interface
Used in ryan-cli
23KB
519 lines
termcolor-json
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,
}),
)?;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
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.
Dependencies
~0.5–8MB
~60K SLoC