Skip to content

Releases: t32k/stylestats

Support request options, and add CLI options.

28 Mar 02:13
Compare
Choose a tag to compare
  • 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

27 Mar 13:15
Compare
Choose a tag to compare
  • Support compiled LESS/Stylus statics data.

And doesn't support Sass, because of node-sass have many troubles @import-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!

27 Mar 02:49
Compare
Choose a tag to compare
  • 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.

23 Mar 16:14
Compare
Choose a tag to compare
  • Support HTML output CLI option.
  • Fix several bugs.

Add new `Data Uri Size` metrics

19 Mar 04:15
Compare
Choose a tag to compare
  • Add dataUriSize metrics
  • Add raitoOfDataUriSize metrics

Add new `Javascript Specific Selectors` metrics

15 Mar 15:05
Compare
Choose a tag to compare
  • Add Javascript Specific Selectors metrics
  • Fix counting rules inside media queries
  • Refactor methods.

Mejor Released!

14 Mar 08:28
Compare
Choose a tag to compare
  • StyleStats.parse() API is changed.
  • Add new metrics.
  • Fix unique colors metics.