Skip to content

Commit 4401cc6

Browse files
committed
Update README with examples.
1 parent f884962 commit 4401cc6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
# Pretty Web Console [![npm version](https://badge.fury.io/js/pretty-web-console.svg)](https://badge.fury.io/js/pretty-web-console) [![Build Status](https://travis-ci.org/bbmoz/pretty-web-console.svg)](https://travis-ci.org/bbmoz/pretty-web-console)
22

33
> Prettier logs in your browser console!
4+
5+
```javascript
6+
import pwc from 'pretty-web-console'
7+
8+
pwc.blue().log('i am blue').done()
9+
10+
pwc.bold().log('i am bold').done()
11+
12+
pwc.color('blue').weight('bold').log('i am blue and bold').done()
13+
14+
pwc.bg('lightblue').log('i have a light blue background').done()
15+
16+
pwc.large().log('i am large').done()
17+
18+
pwc.large().bg('lightgreen').color('blue').bold().log('i have a light green background, and i am large and blue').done()
19+
```

0 commit comments

Comments
 (0)