Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 7e3b26a

Browse files
committed
Add usage information
1 parent 41256d2 commit 7e3b26a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ npm install --save postcss-cssstats
1111
## Usage
1212

1313
```javascript
14-
var postcssCssstats = require('postcss-cssstats');
15-
16-
postcssCssstats(); // => true
14+
var postcss = require('postcss');
15+
var cssstats = require('postcss-cssstats');
16+
17+
var output = postcss([
18+
cssstats(function(stats) {
19+
console.log(stats);
20+
}))
21+
.process(css);
1722
```
1823

1924
## License

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"test": "test"
99
},
1010
"scripts": {
11-
"test": "jshint . && mocha test"
11+
"test": "mocha test",
12+
"hint": "jshint ."
1213
},
1314
"repository": {
1415
"type": "git",

0 commit comments

Comments
 (0)