Skip to content

Support request options, and add CLI options.

Compare
Choose a tag to compare
@t32k t32k released this 28 Mar 02:13
· 321 commits to master since this release
  • 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