add README
This commit is contained in:
parent
8bb91ae95d
commit
396445d67b
12
README.md
12
README.md
@ -21,4 +21,16 @@ colors for beautylog
|
|||||||
## Usage
|
## Usage
|
||||||
Use TypeScript for best in class instellisense.
|
Use TypeScript for best in class instellisense.
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import * as beautycolor from 'beautycolor'
|
||||||
|
|
||||||
|
let myColoredString = beautycolor.coloredString(
|
||||||
|
'This string has a blue font and a green background',
|
||||||
|
'blue',
|
||||||
|
'green'
|
||||||
|
)
|
||||||
|
|
||||||
|
console.log(myColoredString)
|
||||||
|
```
|
||||||
|
|
||||||
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)
|
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)
|
||||||
|
Loading…
Reference in New Issue
Block a user