tabprinter 0.2.2

tabprinter is a Rust library for creating and printing formatted tables in the terminal. It supports various table styles and offers both color and non-color output options.
Documentation
use tabprinter::{Alignment, Table, TableStyle, Cell};

fn main() {
    // Create a new table with the Grid style
    let mut table = Table::new(TableStyle::Grid);

    // Add columns to the table
    table.add_column("Name", Alignment::Left);
    table.add_column("Age", Alignment::Right);
    table.add_column("City", Alignment::Center);

    // Add rows to the table
    table.add_row(vec![
        Cell::new("Alice"),
        Cell::new("30"),
        Cell::new("New York"),
    ]);
    table.add_row(vec![
        Cell::new("Bob"),
        Cell::new("25"),
        Cell::new("Los Angeles"),
    ]);

    // Print the table
    table.print().unwrap();
}