{"_id":"grunt-parker","_rev":"1518190","name":"grunt-parker","description":"Grunt plugin for parker, a stylesheet analysis tool.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"time":{"modified":"2021-11-10T08:07:22.000Z","created":"2014-09-14T16:30:40.190Z","0.2.0":"2016-04-07T08:29:14.236Z","0.1.6":"2016-03-28T19:22:20.908Z","0.1.5":"2016-02-20T23:10:38.271Z","0.1.4":"2016-02-05T01:12:17.617Z","0.1.3":"2014-12-14T01:31:52.202Z","0.1.2":"2014-09-16T10:40:56.578Z","0.1.1":"2014-09-16T10:36:03.887Z","0.1.0":"2014-09-14T16:30:40.190Z"},"users":{"arnoldstoba":true},"author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"versions":{"0.2.0":{"name":"grunt-parker","version":"0.2.0","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"contributors":[{"name":"Oliver Farrell","url":"http://oliverjfarrell.co.uk"},{"name":"Tane Morgan","url":"https://github.com/tanem"},{"name":"Lars Olesen","url":"https://github.com/lsolesen"},{"name":"Jason Weir","url":"https://github.com/Gidgidonihah"}],"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^1.0.1","grunt-coffeelint":"0.0.15","grunt-contrib-coffee":"^1.0.0","matchdep":"^1.0.1"},"dependencies":{"chalk":"^1.1.3","parker":"0.0.10"},"gitHead":"edfe785c657a2bee893cb40c291909194487a80e","_id":"grunt-parker@0.2.0","_shasum":"2a6ae51ccc413339eeb48316da46e1731a8fa595","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.10.0","_npmUser":{"name":"leny","email":"info@flatland.be"},"dist":{"shasum":"2a6ae51ccc413339eeb48316da46e1731a8fa595","size":9612,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.2.0.tgz"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/grunt-parker-0.2.0.tgz_1460017751790_0.7799200010485947"},"directories":{},"publish_time":1460017754236,"_cnpm_publish_time":1460017754236,"_hasShrinkwrap":false},"0.1.6":{"name":"grunt-parker","version":"0.1.6","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"contributors":[{"name":"Oliver Farrell","url":"http://oliverjfarrell.co.uk"},{"name":"Tane Morgan","url":"https://github.com/tanem"},{"name":"Lars Olesen","url":"https://github.com/lsolesen"}],"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-coffeelint":"0.0.15","grunt-contrib-coffee":"^0.13.0","matchdep":"^1.0.0"},"peerDependencies":{"grunt":">=0.4.0"},"dependencies":{"chalk":"^1.1.1","parker":"0.0.10"},"gitHead":"f5d21e2c22330d546a3dc8344e38c6071b634554","_id":"grunt-parker@0.1.6","_shasum":"e4af6e27846d2bbef998d5b7e03e5e3eda1fda0d","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"leny","email":"info@flatland.be"},"dist":{"shasum":"e4af6e27846d2bbef998d5b7e03e5e3eda1fda0d","size":9533,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.6.tgz"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/grunt-parker-0.1.6.tgz_1459192939919_0.706464190967381"},"directories":{},"publish_time":1459192940908,"_cnpm_publish_time":1459192940908,"_hasShrinkwrap":false},"0.1.5":{"name":"grunt-parker","version":"0.1.5","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"contributors":[{"name":"Oliver Farrell","url":"http://oliverjfarrell.co.uk"},{"name":"Tane Morgan","url":"https://github.com/tanem"}],"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-coffeelint":"0.0.15","grunt-contrib-coffee":"^0.13.0","matchdep":"^1.0.0"},"peerDependencies":{"grunt":">=0.4.0"},"dependencies":{"chalk":"^1.1.1","parker":"0.0.9"},"gitHead":"26eda2e33615fefe88a94f83c318d9e3a8d82e0f","_id":"grunt-parker@0.1.5","_shasum":"2c1b8ae874d4a59b253eb947b459d0c6344f49d3","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"leny","email":"info@flatland.be"},"dist":{"shasum":"2c1b8ae874d4a59b253eb947b459d0c6344f49d3","size":9505,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.5.tgz"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/grunt-parker-0.1.5.tgz_1456009833669_0.6806402408983558"},"directories":{},"publish_time":1456009838271,"_cnpm_publish_time":1456009838271,"_hasShrinkwrap":false},"0.1.4":{"name":"grunt-parker","version":"0.1.4","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"contributors":[{"name":"Oliver Farrell","url":"http://oliverjfarrell.co.uk"},{"name":"Tane Morgan","url":"https://github.com/tanem"}],"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-coffeelint":"0.0.15","grunt-contrib-coffee":"^0.13.0","matchdep":"^1.0.0"},"peerDependencies":{"grunt":"^0.4.5"},"dependencies":{"chalk":"^1.1.1","parker":"0.0.9"},"gitHead":"a2d5462e612b8f44a04f487f697c4d453f3783c4","_id":"grunt-parker@0.1.4","_shasum":"ebfe3c762713017dc827f8cb69355d373dfed880","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"leny","email":"info@flatland.be"},"dist":{"shasum":"ebfe3c762713017dc827f8cb69355d373dfed880","size":9499,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.4.tgz"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/grunt-parker-0.1.4.tgz_1454634735135_0.8668367478530854"},"directories":{},"publish_time":1454634737617,"_cnpm_publish_time":1454634737617,"_hasShrinkwrap":false},"0.1.3":{"name":"grunt-parker","version":"0.1.3","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"contributors":[{"name":"Oliver Farrell","url":"http://oliverjfarrell.co.uk"}],"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-coffeelint":"0.0.13","grunt-contrib-coffee":"^0.12.0","matchdep":"^0.3.0"},"peerDependencies":{"grunt":"^0.4.5"},"dependencies":{"chalk":"^0.5.1","parker":"0.0.8"},"gitHead":"2adec34e6915ef4a9710d60b350d1b93c1dea6ee","_id":"grunt-parker@0.1.3","_shasum":"c1417006fedb4e90b9a6228bef72f55166c7b097","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"leny","email":"info@flatland.be"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"dist":{"shasum":"c1417006fedb4e90b9a6228bef72f55166c7b097","size":9443,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.3.tgz"},"directories":{},"publish_time":1418520712202,"_cnpm_publish_time":1418520712202,"_hasShrinkwrap":false},"0.1.2":{"name":"grunt-parker","version":"0.1.2","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-coffee":"~0.10","grunt-coffeelint":"~0.0","matchdep":"~0.3","grunt":"~0.4.5"},"peerDependencies":{"grunt":"~0.4.5"},"dependencies":{"chalk":"^0.5.1","parker":"0.0.8"},"gitHead":"5501d905e3366a45d5f36dc9bd7ba0c9d3e07c3c","_id":"grunt-parker@0.1.2","_shasum":"a42d5a06547184edb95982f7caa991821eb010a7","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"leny","email":"info@flatland.be"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"dist":{"shasum":"a42d5a06547184edb95982f7caa991821eb010a7","size":9384,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.2.tgz"},"directories":{},"publish_time":1410864056578,"_cnpm_publish_time":1410864056578,"_hasShrinkwrap":false},"0.1.1":{"name":"grunt-parker","version":"0.1.1","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-coffee":"~0.10","grunt-coffeelint":"~0.0","matchdep":"~0.3","grunt":"~0.4.5"},"peerDependencies":{"grunt":"~0.4.5"},"dependencies":{"chalk":"^0.5.1","parker":"0.0.8"},"gitHead":"a04a4e8a901ddb440dff55abd48b5886129d5a60","_id":"grunt-parker@0.1.1","_shasum":"edee6c4175e6fe3b4bf8a90f75474254004e0369","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"leny","email":"info@flatland.be"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"dist":{"shasum":"edee6c4175e6fe3b4bf8a90f75474254004e0369","size":9384,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.1.tgz"},"directories":{},"publish_time":1410863763887,"_cnpm_publish_time":1410863763887,"_hasShrinkwrap":false},"0.1.0":{"name":"grunt-parker","version":"0.1.0","description":"Grunt plugin for parker, a stylesheet analysis tool.","keywords":["gruntplugin","parker","stylesheet","analysis","css"],"homepage":"https://github.com/leny/grunt-parker","author":{"name":"leny","email":"info@flatland.be","url":"http://leny.me"},"repository":{"type":"git","url":"git://github.com/leny/grunt-parker.git"},"bugs":{"url":"https://github.com/leny/grunt-parker/issues"},"licenses":[{"type":"MIT","url":"https://github.com/leny/grunt-parker/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-coffee":"~0.10","grunt-coffeelint":"~0.0","matchdep":"~0.3","grunt":"~0.4.5"},"peerDependencies":{"grunt":"~0.4.5"},"dependencies":{"chalk":"^0.5.1","parker":"0.0.8"},"gitHead":"b9559a9a857210fb58bad45d7c23b9dc6c404163","_id":"grunt-parker@0.1.0","_shasum":"d83456bb7d3322dc6aa528b90f5a55973e7fc6a4","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"leny","email":"info@flatland.be"},"maintainers":[{"name":"leny","email":"info@flatland.be"}],"dist":{"shasum":"d83456bb7d3322dc6aa528b90f5a55973e7fc6a4","size":8943,"noattachment":false,"key":"/grunt-parker/-/grunt-parker-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/grunt-parker/download/grunt-parker-0.1.0.tgz"},"directories":{},"publish_time":1410712240190,"_cnpm_publish_time":1410712240190,"_hasShrinkwrap":false}},"readme":"# grunt-parker\n\n![NPM version](http://img.shields.io/npm/v/grunt-parker.svg) ![Dependency Status](https://david-dm.org/leny/grunt-parker.svg) ![Downloads counter](http://img.shields.io/npm/dm/grunt-parker.svg)\n\n> Grunt plugin for [parker](https://github.com/katiefenn/parker), a stylesheet analysis tool.\n\n* * *\n\n## Getting Started\n\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-parker --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-parker');\n```\n\n## The \"parker\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `parker` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  parker: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.metrics\n\nType: `Array` (metric names)  \nDefault value: `false`\n\nAn array of the metrics to use in parker.  \nBy default, grunt-parker use all available metrics.\n\nBy now, grunt-parker accepts the following metrics :\n\n- `TotalStylesheets`\n- `TotalStylesheetSize`\n- `TotalRules`\n- `TotalSelectors`\n- `TotalIdentifiers`\n- `TotalDeclarations`\n- `SelectorsPerRule`\n- `IdentifiersPerSelector`\n- `SpecificityPerSelector`\n- `TopSelectorSpecificity`\n- `TopSelectorSpecificitySelector`\n- `TotalIdSelectors`\n- `TotalUniqueColours`\n- `UniqueColours`\n- `TotalImportantKeywords`\n- `TotalMediaQueries`\n- `MediaQueries`\n\n#### options.file\n\nType: `String` (file path)  \nDefault value: `false`\n\nA file path to log the reported results, in *markdown* format.  \nIf `false` is given, the file will not be written.  \n**Note:** using a file as output will silence the console output.\n\n#### options.title\n\nType: `String`  \nDefault value: `Grunt Parker Report`\n\nWhen logging the reported results to file, use this as title of the markdown document.\n\n#### options.colophon\n\nType: `Boolean`  \nDefault value: `false`\n\nWhen logging the reported results to file, use colophon and timestamp as footer of the markdown document.\n\n#### options.usePackage\n\nType: `Boolean`  \nDefault value: `false`\n\nWhen enabled, if you launch your grunt-packer task from a folder containing a `package.json` file (like 99% of use cases), grunt-packer will use some of the package's informations to make the report file a little more informative (use project's name as title, show version and description, links to the homepage…).\n\n### Usage Examples\n\n#### Default Options\n\nIn this example, the default options are used to shows the results of the parker analysis for the given files.\n\n```js\ngrunt.initConfig({\n  parker: {\n    options: {},\n    src: [\n      'test/*.css'\n    ],\n  },\n});\n```\n\n#### Custom Options\n\nIn this example, custom options are used to shows the results of the parker analysis for the given files, with only the four given metrics, and write the results on a file named `report.md`\n\n```js\ngrunt.initConfig({\n  parker: {\n    options: {\n      metrics: [\n        \"TotalRules\",\n        \"TotalSelectors\",\n        \"TotalIdentifiers\",\n        \"TotalDeclarations\"\n      ],\n      file: \"report.md\",\n      colophon: true,\n      usePackage: true\n    },\n    src: [\n      'test/*.css'\n    ]\n  }\n});\n```\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style.  \nLint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n* **2016/04/07** : v0.2.0\n* **2016/02/05** : v0.1.4\n* **2014/12/14** : v0.1.3\n* **2014/09/16** : v0.1.2\n* **2014/09/14** : v0.1.0\n","_attachments":{},"homepage":"https://github.com/leny/grunt-parker","bugs":{"url":"https://github.com/leny/grunt-parker/issues"}}