style-format

Library to easily style texts with string formatting

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

$ npm install style-format
format('{blue} hello {green} world')
// => hello world 
 
format('{bold}{red} span {yellow} eggs {reset}')
// => span eggs 

See ansi-codes for reference.