@azu/style-format

Library to easily style texts with string formatting

Stats

StarsIssuesVersionUpdatedCreatedSize
@azu/style-format
001.0.06 years ago6 years agoMinified + gzip package size for @azu/style-format in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.