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

#488 in Command-line interface

Download history 69/week @ 2024-10-25 74/week @ 2024-11-01 41/week @ 2024-11-08 25/week @ 2024-11-15 32/week @ 2024-11-22 247/week @ 2024-11-29 155/week @ 2024-12-06 37/week @ 2024-12-13 71/week @ 2024-12-20 135/week @ 2024-12-27 160/week @ 2025-01-03 130/week @ 2025-01-10 60/week @ 2025-01-17 54/week @ 2025-01-24 88/week @ 2025-01-31 48/week @ 2025-02-07

264 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

~4–12MB
~156K SLoC