Library to easily style texts with string formatting.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
example.js
index.js
package.json

README.md

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.