Skip to content
Stylesheet analysis tool.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Update Jun 14, 2016
lib New Specificity Metrics Jun 19, 2016
metrics Merge branch 'new-specificity-metrics' Jul 27, 2016
test Merge unit tests from PR #51 Jul 27, 2016
.gitignore Inital commit Feb 9, 2014
.jshintrc Inital commit Feb 9, 2014
.travis.yml Change node version number in CI config May 31, 2015 Inital commit Feb 9, 2014 Inital commit Feb 9, 2014 added programmatic usage section to readme Apr 23, 2015
package.json 1.0.0-alpha.0 Jul 27, 2016
parker.js Make folder parsing recursive, fix #41 Jul 31, 2015


Parker is a stylesheet analysis tool. It runs metrics on your stylesheets and will report on their complexity.

Build Status


Install with npm:

npm install -g parker


Measuring Local Stylesheets

parker a.css b.css c.css
parker css/

Measuring a Remote Stylesheet Using Curl

curl -s | parker -s

Output JSON

parker example.css --format=json

Programmatic usage

After installing parker as a dependency in your project, you can use it as follows:

var Parker = require('parker/lib/Parker');
var metrics = require('parker/metrics/All'); // Or an array of the metrics you want to measure

var file = fs.readFile('test.css', function (err, data) {
	if (err) throw err;

	var parker = new Parker(metrics);
	var results =;

	// Do something with results


Documentation can be found in markdown format the docs folder.


From the repo root:

npm install
npm test


Pull requests, issues, new unit tests, code reviews and good advice are all things that would make a difference to Parker. You can even contribute by telling me how useful Parker is to you; please let me know on Twitter at @katie_fenn. Any time generously donated to helping make Parker better is gratefully accepted, and in return I shall do my best to merge contributions.

Please target pull requests at the "develop" branch.


Parker is my first open source project, and your suggestions and feedback are welcome. The project is in a pre-beta phase and is liable to change at any time. Parker is named for the character Parker from Gerry Anderson's Thunderbirds, without which my interest in technology and computers would certainly not be what it is today. Parker is Nosey about your stylesheets.

You can’t perform that action at this time.