Releases: t32k/stylestats
Releases · t32k/stylestats
Support request options, and add CLI options.
- Support request options.
- Fix several bugs.
- Add CLI options.
-g
is option to enable display gzipped size.
$ stylestats http://t32k.me -g
-n
is option to show only numeral metrics.
$ stylestats http://t32k.me -n
StyleStats!
┌─────────────────────────────────┬────────┐
│ Stylesheets │ 1 │
├─────────────────────────────────┼────────┤
│ Size │ 15.1KB │
├─────────────────────────────────┼────────┤
│ Data Uri Size │ 0 │
├─────────────────────────────────┼────────┤
│ Rules │ 207 │
├─────────────────────────────────┼────────┤
│ Selectors │ 424 │
├─────────────────────────────────┼────────┤
│ Simplicity │ 48.82% │
├─────────────────────────────────┼────────┤
│ Most Identifier │ 4 │
├─────────────────────────────────┼────────┤
│ Lowest Cohesion │ 24 │
├─────────────────────────────────┼────────┤
│ Total Unique Font Sizes │ 15 │
├─────────────────────────────────┼────────┤
│ Total Unique Colors │ 11 │
├─────────────────────────────────┼────────┤
│ Id Selectors │ 14 │
├─────────────────────────────────┼────────┤
│ Universal Selectors │ 0 │
├─────────────────────────────────┼────────┤
│ Unqualified Attribute Selectors │ 7 │
├─────────────────────────────────┼────────┤
│ Javascript Specific Selectors │ 0 │
├─────────────────────────────────┼────────┤
│ Important Keywords │ 6 │
├─────────────────────────────────┼────────┤
│ Float Properties │ 4 │
├─────────────────────────────────┼────────┤
│ Media Queries │ 8 │
└─────────────────────────────────┴────────┘
-u
is option to set user agent of http request.
$ stylestats http://t32k.me -u io
Support compile LESS/Stylus
- Support compiled LESS/Stylus statics data.
And doesn't support Sass, because of node-sass have many troubles @impor
t-ed files.
$ stylestats bootsrap.less
$ stylestats foo.styl
These are compiled to css, and StyleStats analyze the css files.
StyleStats does not support the preprocessor metrics( the number of @extend, @mixin, variables etc).
v3.0.0 Released!
- Change CLI option name. (
-e, --extension
to-t, --type
) - Supported parse HTML pages. (eg.
$stylestats http://www.google.com/
) - Supported process file-contents(eg.
.css{color:green}
). - Fixed several bugs.
Support HTML output CLI option.
- Support HTML output CLI option.
- Fix several bugs.
Add new `Data Uri Size` metrics
- Add
dataUriSize
metrics - Add
raitoOfDataUriSize
metrics
Add new `Javascript Specific Selectors` metrics
- Add
Javascript Specific Selectors
metrics - Fix counting rules inside media queries
- Refactor methods.
Mejor Released!
StyleStats.parse()
API is changed.- Add new metrics.
- Fix unique colors metics.