To use StyleStats, just point it to a CSS file and it will tell you various stats about it, ideal for debugging and improving overall CSS policies.
StyleStats can work with manually entered CSS code, it can retrieve all the CSS loaded on a specific URL, or it can parse and analyze local or remote stylesheets directly.
Under the hood, this tool works by parsing the CSS code line by line, and collecting various parameters, storing them into a local JSON. When all the CSS file has been parsed, the JSON is dumped into the Node.js console.
Additionally, for historical referencing, the StyleStats output can also be saved to a GitHub Gist or an external file. JSON, CSV and HTML formats are currently supported.
Modules for Gulp.js and Grunt.js are also available.
What is new in this release:
- Drop support Node.js v0.10
- Recommend using Node.js v4.0+
What is new in version 6.0.0:
- Drop support Node.js v0.10
- Recommend using Node.js v4.0+
What is new in version 5.4.1:
- New features:
- Average of Identifier metric
- Average of Cohesion metric
- Plot with Google Analytics
- Fix bugs:
- Fixed calculating identifiers
- Modified parse error message
What is new in version 5.4.0:
- New features:
- Average of Identifier metric
- Average of Cohesion metric
- Plot with Google Analytics
- Fix bugs:
- Fixed calculating identifiers
- Modified parse error message
What is new in version 5.1.0:
- New features:
- Average of Identifier metric
- Average of Cohesion metric
- Plot with Google Analytics
- Fix bugs:
- Fixed calculating identifiers
- Modified parse error message
What is new in version 5.0.0:
- New features:
- Custom Templates: you can custom output format with handlebars template.
- CSS PefromanceTest: Including test specs file, you can use like a webpagetest-api test.
What is new in version 4.3.0:
- Added markdown output format in CLI.
What is new in version 4.0.0:
- Changed promise func
- Updated parse function arguments
- Deleted underscore.string
- Added error handling
- Added tests
- Added chalk module
- Replaced Jade with Undescore's template
- Fixed cli.js
Requirements:
- Node.js 0.10 or higher
Comments not found