@azu/style-format

1.0.1 • Public • Published

style-format

Library to easily style texts with string formatting. It's based on ansi-codes and format-text

Install

$ npm install @azu/style-format

Usage

format('{blue} hello {green} world')
// => hello world

format('{bold}{red} span {yellow} eggs {reset}')
// => span eggs

Reference

See ansi-codes for reference.

License

MIT

Original is style-format.

/@azu/style-format/

    Package Sidebar

    Install

    npm i @azu/style-format

    Weekly Downloads

    51,130

    Version

    1.0.1

    License

    WTFPL

    Unpacked Size

    3.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • azu