https://github.com/azer/style-format
Library to easily style texts with string formatting.
https://github.com/azer/style-format
Last synced: 11 months ago
JSON representation
Library to easily style texts with string formatting.
- Host: GitHub
- URL: https://github.com/azer/style-format
- Owner: azer
- Created: 2014-03-10T22:37:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-06-05T10:03:07.000Z (about 10 years ago)
- Last Synced: 2024-11-29T00:05:13.522Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## style-format
Library to easily style texts with string formatting.
It's based on [ansi-codes](http://github.com/azer/ansi-codes) and [format-text](http://github.com/azer/format-text)
## Install
```bash
$ npm install style-format
```
## Usage
```js
format('{blue} hello {green} world')
// => hello world
format('{bold}{red} span {yellow} eggs {reset}')
// => span eggs
```
## Reference
See [ansi-codes](http://github.com/azer/ansi-codes) for reference.