Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 463 Bytes

File metadata and controls

24 lines (16 loc) · 463 Bytes

style-format

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

Install

$ npm install 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.