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

#445 in Command-line interface

Download history 1/week @ 2024-09-16 10/week @ 2024-09-23 24/week @ 2024-09-30 10/week @ 2024-10-14 8/week @ 2024-10-21 95/week @ 2024-10-28 55/week @ 2024-11-04 53/week @ 2024-11-11 4/week @ 2024-11-18 69/week @ 2024-11-25 285/week @ 2024-12-02 93/week @ 2024-12-09 56/week @ 2024-12-16 72/week @ 2024-12-23 154/week @ 2024-12-30

400 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–15MB
~155K SLoC