npm.io
1.0.1 • Published 3 years ago

@azu/style-format

Licence
WTFPL
Version
1.0.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
1

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.

Keywords