GithubHelp home page GithubHelp logo

parker's Introduction

Parker

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

Build Status

Installation

Install with npm:

npm install -g parker

Usage

Measuring Local Stylesheets

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

Measuring a Remote Stylesheet Using Curl

curl http://www.katiefenn.co.uk/css/shuttle.css -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 = parker.run(data.toString());

	// Do something with results
});

Documentation

Documentation can be found in markdown format the docs folder.

Testing

From the repo root:

npm install
npm test

Contributing

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.

About

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.

parker's People

Contributors

callumacrae avatar gidgidonihah avatar joshuacc avatar katiefenn avatar kitation avatar lewiscowper avatar najamkhn avatar peterjmag avatar richardmiller-zz avatar sky-glenjamin avatar swelham avatar teone avatar tzi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.