@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    63,363
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    63,363
  • 1.0.0
    77,294
  • 0.0.1
    2

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