Skip to content
This repository was archived by the owner on Oct 30, 2017. It is now read-only.

Commit 3b9e299

Browse files
committed
update readme
1 parent 2891e50 commit 3b9e299

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

README.md

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# choo-log [![stability][0]][1] [![choo peer dependency][13]][14]
2-
[![npm version][2]][3] [![build status][4]][5] [![test coverage][6]][7]
1+
# choo-log [![stability][0]][1]
2+
[![npm version][2]][3] [![build status][4]][5]
33
[![downloads][8]][9] [![js-standard-style][10]][11]
44

55
Development logger for [choo][12].
66

7-
![screen capture](./screen.gif)
7+
![screen capture](./screenshot.png)
88

99
## Usage
1010
```js
@@ -13,24 +13,7 @@ var choo = require('choo')
1313

1414
var app = choo()
1515
app.use(log())
16-
17-
var tree = app.start()
18-
document.body.appendChild(tree)
19-
```
20-
21-
And to optimize for production using
22-
[envify](https://github.com/hughsk/envify):
23-
```js
24-
var choo = require('choo')
25-
26-
var app = choo()
27-
28-
// this block of code will be eliminated by any minification if
29-
// NODE_ENV is set to "production"
30-
if (process.env.NODE_ENV !== 'production') {
31-
var log = require('choo-log')
32-
app.use(log())
33-
}
16+
app.mount('body')
3417
```
3518

3619
## API

screenshot.png

160 KB
Loading

0 commit comments

Comments
 (0)