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

#462 in Command-line interface

Download history 48/week @ 2024-08-18 6/week @ 2024-08-25 9/week @ 2024-09-01 2/week @ 2024-09-08 1/week @ 2024-09-15 9/week @ 2024-09-22 23/week @ 2024-09-29 2/week @ 2024-10-06 4/week @ 2024-10-13 14/week @ 2024-10-20 93/week @ 2024-10-27 55/week @ 2024-11-03 46/week @ 2024-11-10 12/week @ 2024-11-17 50/week @ 2024-11-24 279/week @ 2024-12-01

389 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–15MB
~152K SLoC