#api #cli #printing #pretty-print #array #generator #tidy

crud-tidy-viewer

CLI generator for your API. Array pretty printer

7 releases

0.1.6 Mar 19, 2024
0.1.5 Sep 24, 2023
0.1.4 Jul 20, 2023
0.1.3 Jun 12, 2023
0.1.0 Dec 31, 2022

#131 in Value formatting

Download history 12/week @ 2024-02-21 8/week @ 2024-02-28 128/week @ 2024-03-13 57/week @ 2024-03-20 11/week @ 2024-03-27 18/week @ 2024-04-03

214 downloads per month
Used in 3 crates (via crud-api)

MIT license

44KB
995 lines

Crud tidy viewer

Pretty printer for arrays.

Some parts of the code is copied and refactored from Tidy-viewer (released under public domain)

Examples

use crud_tidy_viewer::{display_table, TableConfig};
  let rdr = vec![
    vec!["a".to_string(), "b".to_string()],
    vec!["1".to_string(), "b".to_string()],
    vec!["4.1453".to_string(), "c".to_string()],
    vec!["2.4".to_string(), "f".to_string()],
    vec!["5".to_string(), "e".to_string()],
  ];
  display_table(&rdr, TableConfig::default());

lib.rs:

Crud tidy viewer

Pretty printer for arrays.

Some parts of the code is copied and refactored from Tidy-viewer (released under public domain)

Examples

use crud_tidy_viewer::{display_table, TableConfig};
  let rdr = vec![
    vec!["a".to_string(), "b".to_string()],
    vec!["1".to_string(), "b".to_string()],
    vec!["4.1453".to_string(), "c".to_string()],
    vec!["2.4".to_string(), "f".to_string()],
    vec!["5".to_string(), "e".to_string()],
  ];
  display_table(&rdr, TableConfig::default());

Dependencies

~5–16MB
~183K SLoC