An open API service indexing awesome lists of open source software.

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.

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.