5 releases (3 breaking)

0.4.1 Jan 30, 2024
0.4.0 Jan 30, 2024
0.3.0 Jan 27, 2024
0.2.0 May 18, 2023
0.1.0 Jun 22, 2022

#768 in Command-line interface

Download history 16/week @ 2024-11-20 117/week @ 2024-11-27 267/week @ 2024-12-04 56/week @ 2024-12-11 80/week @ 2024-12-18 81/week @ 2024-12-25 185/week @ 2025-01-01 147/week @ 2025-01-08 58/week @ 2025-01-15 57/week @ 2025-01-22 85/week @ 2025-01-29 57/week @ 2025-02-05 136/week @ 2025-02-12 100/week @ 2025-02-19 61/week @ 2025-02-26 155/week @ 2025-03-05

455 downloads per month
Used in sos

MIT/Apache

13KB
286 lines

Terminal Banner

Tiny Rust library for rendering a boxed banner at the current terminal width wrapping each paragraph of text.

See the examples and the API docs.

License

MIT or Apache-2.0


lib.rs:

Tiny utility to render a boxed banner at the width of the terminal.

Use the color feature to enable support for terminal colors, see the examples for usage.

use terminal_banner::Banner;
let banner = Banner::new()
    .text("LIPSUM".into())
    .text("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.".into())
    .render();
println!("{}", banner);

Dependencies

~3–12MB
~149K SLoC