{"name":"random-color","version":"0.0.1-security","description":"This package name is not currently in use, but was formerly occupied by a popular package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/npm/security-holder.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/npm/security-holder/issues"},"homepage":"https://github.com/npm/security-holder#readme","gitHead":"d1719e2a152734ed854065de56039770c9104d83","_id":"random-color@0.0.1-security","_shasum":"e0cadac1f301f6ceb5b41991840a98d8a5fbe680","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.1.0","_npmUser":{"name":"npm","email":"npm@npmjs.com"},"dist":{"shasum":"e0cadac1f301f6ceb5b41991840a98d8a5fbe680","tarball":"http://registry-npm.ywwl.com/random-color/download/random-color-0.0.1-security.tgz","integrity":"sha512-yGy+rCKeVYEQvHN+k+ut1n4geN1AF3InCijMrSoAcnhi8tE/X36PfmyGoHM6V5Ns/5tSJbFOK+cGz7QIJ0lM5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWD4MKDDNMkTHg8WaXylEO1lg2yCVDypZ2f1GKmiL/hAIgZQOK7LiTyUCHVAL8dkdTZDt/TT+L4kGOE8PSTPo+J5A="}],"size":581,"noattachment":false,"key":"/random-color/-/random-color-0.0.1-security.tgz"},"maintainers":[{"name":"nj48","email":"spam@njohnson.me"}],"directories":{},"readme":"# random-color\n\n> Generate random colors based on the golden ratio, which are more visually pleasing.\n  \n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-color/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/mock-end/random-color/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-color)\n[![coverage:?](https://img.shields.io/coveralls/mock-end/random-color/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-color)\n  \n\nThis module is deeply inspired by Martin Ankerl's [blog post](http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/). \n\nThe generated colors are more visually pleasing together than a simple random color generator because they are computed by moving around the color wheel in increments of the golden ratio. By default, the generated colors can used as a background for legible black text, but the color generator can be customized for other uses.\n\n\n## Install\n\n```\n$ npm install --save random-color\n```\n\n## Usage\n\n```js\nvar randomColor = require('random-color');\n\n// API\n// - randomColor([saturation, value]);\n```\n\nBy default, generate a color with `saturation = 0.5` and `value = 0.95`. \n\nReturns [color](https://github.com/harthur/color) object so you can convert the color to any color-formats easily.\n\n```js\nvar color = randomColor();\n\n// ref: https://github.com/harthur/color\ncolor.hexString(); // => '#d67118'\ncolor.rgbString(); // => 'rgb(110,52,164)'\n```\n![saturation=0.5, value=0.95](img/1.png?raw=true \"saturation=0.5, value=0.95\")\n\n\nOptionally specify `saturation` and `value`:\n\n```js\nvar color = randomColor(0.99, 0.99);\n```\n![saturation=0.99, value=0.99](img/2.png?raw=true \"saturation=0.99, value=0.99\")\n\n```js\nvar color = randomColor(0.3, 0.99);\n```\n![saturation=0.3, value=0.99](img/1.png?raw=true \"saturation=0.3, value=0.99\")\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/mock-end/random-color/issues/new).\n","publish_time":1458771672590,"_cnpm_publish_time":1458771672590,"dist-tags":{"latest":"1.0.1"}}