{"_id":"random-color","_rev":"2834827","name":"random-color","description":"Generate random colors based on the golden ratio, which are more visually pleasing.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"bubkoo","email":""}],"time":{"modified":"2022-09-06T15:31:18.000Z","created":"2013-06-17T05:24:08.768Z","1.0.1":"2016-04-26T13:41:53.139Z","1.0.0":"2016-04-18T03:58:13.186Z","0.0.2":"2016-04-10T23:46:00.070Z","0.0.1-security":"2016-03-23T22:21:12.590Z","2.0.0":"2016-03-22T23:50:50.526Z","0.0.1":"2014-08-15T07:07:29.624Z","0.0.0":"2013-06-17T05:24:08.768Z"},"users":{},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-color.git"},"versions":{"1.0.1":{"name":"random-color","version":"1.0.1","description":"Generate random colors based on the golden ratio, which are more visually pleasing.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["color","rgb","hex","random","randomly","randomize","chance","test","dice","mock"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mock-end/random-color.git"},"bugs":{"url":"https://github.com/mock-end/random-color/issues"},"homepage":"https://github.com/mock-end/random-color#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"color":"^0.11.1"},"gitHead":"0ab2855e633b6a1a20b182288a5853e0fe2c746e","_id":"random-color@1.0.1","_shasum":"fcfde5d054eefed8b90a8e39ebb06973c40253b1","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"fcfde5d054eefed8b90a8e39ebb06973c40253b1","size":41405,"noattachment":false,"key":"/random-color/-/random-color-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-1.0.1.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-color-1.0.1.tgz_1461678112597_0.7543567435350269"},"directories":{},"publish_time":1461678113139,"_hasShrinkwrap":false,"_cnpm_publish_time":1461678113139,"_cnpmcore_publish_time":"2021-12-17T15:14:55.801Z"},"1.0.0":{"name":"random-color","version":"1.0.0","description":"Generate a random color.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["color","lorem","randomly","random","rand","sampling","generator","generate","gen"],"license":"MIT","author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mock-end/random-color.git"},"bugs":{"url":"https://github.com/mock-end/random-color/issues"},"homepage":"https://github.com/mock-end/random-color#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"gitHead":"31ea0963ac651e3a8c040ca787b9f9299af9fe67","_id":"random-color@1.0.0","_shasum":"23ca63a4e16f11c03692146e31cdeb52ff927a2b","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"23ca63a4e16f11c03692146e31cdeb52ff927a2b","size":2149,"noattachment":false,"key":"/random-color/-/random-color-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-1.0.0.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-color-1.0.0.tgz_1460951892772_0.6464151542168111"},"directories":{},"publish_time":1460951893186,"_hasShrinkwrap":false,"_cnpm_publish_time":1460951893186,"_cnpmcore_publish_time":"2021-12-17T15:14:55.998Z"},"0.0.2":{"name":"random-color","version":"0.0.2","description":"Generate a random color.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bubkoo/random-color.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com","url":"https://github.com/bubkoo"},"license":"MIT","bugs":{"url":"https://github.com/bubkoo/random-color/issues"},"homepage":"https://github.com/bubkoo/random-color#readme","gitHead":"56036b7c045f72041f7f043013dce2e25a18826e","_id":"random-color@0.0.2","_shasum":"a3385f0d0908d0da840be5fb97e9d142ca25966b","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"a3385f0d0908d0da840be5fb97e9d142ca25966b","size":1089,"noattachment":false,"key":"/random-color/-/random-color-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-0.0.2.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-color-0.0.2.tgz_1460331957641_0.9207219933159649"},"directories":{},"publish_time":1460331960070,"_hasShrinkwrap":false,"_cnpm_publish_time":1460331960070,"_cnpmcore_publish_time":"2021-12-17T15:14:56.434Z"},"0.0.1-security":{"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","size":581,"noattachment":false,"key":"/random-color/-/random-color-0.0.1-security.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-0.0.1-security.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-color-0.0.1-security.tgz_1458771671939_0.0768821514211595"},"directories":{},"publish_time":1458771672590,"_hasShrinkwrap":false,"_cnpm_publish_time":1458771672590,"_cnpmcore_publish_time":"2021-12-17T15:14:57.156Z"},"2.0.0":{"name":"random-color","version":"2.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"random-color@2.0.0","_shasum":"31c4d8c81c7d30a425869fa1b1f53c9c4efea062","_from":".","_npmVersion":"3.7.2","_nodeVersion":"4.3.0","_npmUser":{"name":"nj48","email":"spam@njohnson.me"},"dist":{"shasum":"31c4d8c81c7d30a425869fa1b1f53c9c4efea062","size":1872,"noattachment":false,"key":"/random-color/-/random-color-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-2.0.0.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/random-color-2.0.0.tgz_1458690649976_0.7995768787804991"},"directories":{},"publish_time":1458690650526,"_hasShrinkwrap":false,"_cnpm_publish_time":1458690650526,"_cnpmcore_publish_time":"2021-12-17T15:14:57.369Z"},"0.0.1":{"name":"random-color","version":"0.0.1","description":"Module to generate random RGB colors","main":"index.js","scripts":{"test":"fox"},"keywords":["random","color","rgb"],"devDependencies":{"prova":"*"},"repository":{"url":"git@github.com:azer/random-color.git","type":"git"},"author":"Azer Koçulu <azer@kodfabrik.com>","license":"BSD","dependencies":{"rnd":"0.0.0"},"_id":"random-color@0.0.1","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"a5247eece4c720992b2c9dea5558d09ef3d4a054","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"a5247eece4c720992b2c9dea5558d09ef3d4a054","size":730,"noattachment":false,"key":"/random-color/-/random-color-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-0.0.1.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"directories":{},"publish_time":1408086449624,"_hasShrinkwrap":false,"_cnpm_publish_time":1408086449624,"_cnpmcore_publish_time":"2021-12-17T15:14:56.731Z"},"0.0.0":{"name":"random-color","version":"0.0.0","description":"Module to generate random RGB colors","main":"index.js","scripts":{"test":"fox"},"keywords":["random","color","rgb"],"devDependencies":{"fox":"*"},"repository":{"url":"git@github.com:azer/random-color.git","type":"git"},"author":"Azer Koçulu <azer@kodfabrik.com>","license":"BSD","_id":"random-color@0.0.0","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"37cd9a1b5cd29c1cee3a640f0e64f819e0fa87ce","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"37cd9a1b5cd29c1cee3a640f0e64f819e0fa87ce","size":727,"noattachment":false,"key":"/random-color/-/random-color-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/random-color/download/random-color-0.0.0.tgz"},"maintainers":[{"name":"bubkoo","email":""}],"directories":{},"publish_time":1371446648768,"_hasShrinkwrap":false,"_cnpm_publish_time":1371446648768,"_cnpmcore_publish_time":"2021-12-17T15:14:56.979Z"}},"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","_attachments":{},"homepage":"https://github.com/mock-end/random-color#readme","bugs":{"url":"https://github.com/mock-end/random-color/issues"},"license":"MIT"}