columns

Crates.iocolumns
lib.rscolumns
version0.1.0
sourcesrc
created_at2022-05-04 05:07:28.989839
updated_at2022-05-04 05:07:28.989839
descriptionA text manipulation library for displaying separate text in columns.
homepagehttps://crates.io/crates/Columns
repositoryhttps://github.com/S0raWasTaken/Columns
max_upload_size
id580200
size8,158
S0ra (S0raWasTaken)

documentation

https://docs.rs/Columns

README

Columns

A text manipulation library for displaying separate text in columns

Example

use columns::Columns;

println!(
    "{}",
    Columns::from(vec![
        vec!["line1", "line2", "line3"],
        vec!["should", "be", "displayed", "side by side"],
    ])
    .base_tabsize_in(0) // Sets the tabsize to be based in the first one. This is to prevent unnecessary spacing
);

Result:

line1   should
line2   be
line3   displayed
        side by side

TODO list

  • Post on crates.io
  • Customizable separators
Commit count: 20

cargo fmt