#pretty-print #crud #array #generator #viewer #tidy #api

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

#174 in Value formatting

26 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

~7–18MB
~194K SLoC