Skip to content

Commit

Permalink
Bump v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
t32k committed Mar 19, 2014
1 parent 820f433 commit 5ba38ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ StyleStats is Node.js library collect css statistics.

## Installation

Requires Node.js v`0.10.x`
Requires Node.js `0.10.x`

```
$ npm install -g stylestats
Expand All @@ -27,7 +27,11 @@ StyleStats!
┌─────────────────────────────────┬────────────────┐
│ Stylesheets │ 1 │
├─────────────────────────────────┼────────────────┤
│ Size │ 240.0B │
│ Size │ 753B │
├─────────────────────────────────┼────────────────┤
│ Data Uri Size │ 82B │
├─────────────────────────────────┼────────────────┤
│ Raito Of Data Uri Size │ 10.89% │
├─────────────────────────────────┼────────────────┤
│ Rules │ 7 │
├─────────────────────────────────┼────────────────┤
Expand Down Expand Up @@ -247,6 +251,7 @@ Above the stylesheet's stats tree:
{
"stylesheets": 1,
"size": 240,
"dataUriSize": 0,
"rules": 7,
"selectors": 12,
"simplicity": 0.5833333333333334,
Expand Down Expand Up @@ -281,6 +286,7 @@ _(Coming soon)_
## Release History
+ v2.2.0: Add `dataUriSize`, `raitoOfDataUriSize` metics.
+ v2.1.0: Add `javascriptSpecificSelectors` metics, and fix counting properties in mediaQueries.
+ v2.0.0: __API is changed:__ `StyleStats.parse()`. Add metrics.
+ v1.2.0: Support multiple input files.
Expand Down
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function prettyLog(result) {
});
stats[prop] = array.join('\n').replace(/\,/g, ': ');
} else if (key === 'size' || key === 'gzippedSize' || key === 'dataUriSize') {
stats[prop] = numeral(result[key]).format('0.0b').replace(/\.0B/, 'B').replace(/0\.0/, '0');;
stats[prop] = numeral(result[key]).format('0.0b').replace(/\.0B/, 'B').replace(/0\.0/, '0');
} else if (key === 'simplicity' || key === 'raitoOfDataUriSize') {
stats[prop] = numeral(result[key]).format('0.00%');
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylestats",
"version": "2.1.2",
"version": "2.2.0",
"main": "lib/stylestats.js",
"bin": {
"stylestats": "./bin/stylestats"
Expand Down

0 comments on commit 5ba38ff

Please sign in to comment.