4 releases (2 breaking)

0.3.0 Sep 9, 2024
0.2.1 Sep 8, 2024
0.2.0 Sep 3, 2024
0.1.0 Sep 3, 2024

#469 in Command-line interface

Download history 223/week @ 2024-08-31 253/week @ 2024-09-07 42/week @ 2024-09-14 30/week @ 2024-09-21 23/week @ 2024-09-28 33/week @ 2024-10-05 37/week @ 2024-10-12 63/week @ 2024-10-19 14/week @ 2024-10-26 2/week @ 2024-11-02

126 downloads per month

MIT license

9KB
59 lines

lessify

license: MIT GitHub Tag crates.io

Output text through a pager.

It uses less by default, or any pager set by the PAGER environment variable.

Example

use lessify::{OutputPaged, Pager};

fn main() {
    let text = very_long_text();

    Pager::page_or_print(text);

    // Same, but through trait.
    text.output_paged();
}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ut ex suscip
it, elementum tortor et, pretium odio. Suspendisse quis lacus vel nulla mollis m
alesuada. Sed orci purus, auctor ut tempor vitae, convallis ut lorem. Donec sem
augue, efficitur condimentum mauris non, sagittis porttitor lacus. Proin maximus
 suscipit pellentesque. Vestibulum ante eros, ultrices ac varius a, porttitor ne
c libero. Proin tempus dui vel leo rutrum eleifend.

Nullam est libero, posuere vitae tellus ut, volutpat aliquam erat. Fusce vitae u
rna nibh. Proin luctus, augue non aliquam elementum, purus magna consequat ligul
a, id lobortis magna leo nec nunc. Donec at turpis dapibus, malesuada massa vita
:

No runtime deps