{"_id":"has-color","_rev":"21833","name":"has-color","description":"Detect whether a terminal supports color","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:01:43.000Z","created":"2013-08-03T00:06:19.776Z","0.2.0":"2018-03-24T16:21:28.352Z","0.1.7":"2014-04-16T13:49:01.259Z","0.1.6":"2014-04-11T11:39:30.655Z","0.1.5":"2014-04-07T10:57:05.811Z","0.1.4":"2014-02-08T15:59:40.047Z","0.1.3":"2014-01-29T12:03:47.925Z","0.1.2":"2014-01-03T12:25:58.713Z","0.1.1":"2013-08-03T01:38:54.277Z","0.1.0":"2013-08-03T00:06:19.776Z"},"users":{"passy":true,"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/has-color.git"},"versions":{"0.2.0":{"name":"has-color","version":"0.2.0","description":"Detect whether a terminal supports color","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/has-color.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"devDependencies":{"mocha":"*"},"gitHead":"ab671b1f74846d9fb9caea8dc302603a865be3cc","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"homepage":"https://github.com/sindresorhus/has-color#readme","_id":"has-color@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4e0cc2902e294bedefd6e05d6ed644528753eb51","size":1646,"noattachment":false,"key":"/has-color/-/has-color-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/has-color_0.2.0_1521908488290_0.9063609622402691"},"_hasShrinkwrap":false,"publish_time":1521908488352,"_cnpm_publish_time":1521908488352,"deprecated":"Renamed to `supports-color`"},"0.1.7":{"name":"has-color","version":"0.1.7","description":"Detect whether a terminal supports color","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"homepage":"https://github.com/sindresorhus/has-color","_id":"has-color@0.1.7","dist":{"shasum":"67144a5260c34fc3cca677d041daf52fe7b78b2f","size":986,"noattachment":false,"key":"/has-color/-/has-color-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.7.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1397656141259,"_cnpm_publish_time":1397656141259,"_hasShrinkwrap":false},"0.1.6":{"name":"has-color","version":"0.1.6","description":"Detect whether a terminal supports color","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"homepage":"https://github.com/sindresorhus/has-color","_id":"has-color@0.1.6","dist":{"shasum":"a77443bddb036c6df06e04a4493ce9f23533731b","size":981,"noattachment":false,"key":"/has-color/-/has-color-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.6.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1397216370655,"_cnpm_publish_time":1397216370655,"_hasShrinkwrap":false},"0.1.5":{"name":"has-color","version":"0.1.5","description":"Detect whether a terminal supports color","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"homepage":"https://github.com/sindresorhus/has-color","_id":"has-color@0.1.5","dist":{"shasum":"a915bb213e8624135279ad9246ce652610266f62","size":962,"noattachment":false,"key":"/has-color/-/has-color-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.5.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1396868225811,"_cnpm_publish_time":1396868225811,"_hasShrinkwrap":false},"0.1.4":{"name":"has-color","version":"0.1.4","description":"Detect whether a terminal supports color","keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"homepage":"https://github.com/sindresorhus/has-color","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["has-color.js"],"main":"has-color","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color.git"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"has-color@0.1.4","dist":{"shasum":"d1dadeea5b9e8b446bf08603532333710c95a290","size":1018,"noattachment":false,"key":"/has-color/-/has-color-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1391875180047,"_cnpm_publish_time":1391875180047,"_hasShrinkwrap":false},"0.1.3":{"name":"has-color","version":"0.1.3","description":"Detect whether a terminal supports color","keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"homepage":"https://github.com/sindresorhus/has-color","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["has-color.js"],"main":"has-color","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color.git"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"has-color@0.1.3","dist":{"shasum":"b249acb22a6b481c572eeddb28b8f346c0b242a1","size":1013,"noattachment":false,"key":"/has-color/-/has-color-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1390997027925,"_cnpm_publish_time":1390997027925,"_hasShrinkwrap":false},"0.1.2":{"name":"has-color","version":"0.1.2","description":"Detect whether a terminal supports color","keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"homepage":"https://github.com/sindresorhus/has-color","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["has-color.js"],"main":"has-color","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color.git"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"readmeFilename":"readme.md","_id":"has-color@0.1.2","dist":{"shasum":"c4a523038912451262c745e0a663c38d948098b4","size":1006,"noattachment":false,"key":"/has-color/-/has-color-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1388751958713,"_cnpm_publish_time":1388751958713,"_hasShrinkwrap":false},"0.1.1":{"name":"has-color","version":"0.1.1","description":"Detect whether a terminal supports color","keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"homepage":"https://github.com/sindresorhus/has-color","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["has-color.js"],"main":"has-color","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color.git"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"readmeFilename":"readme.md","_id":"has-color@0.1.1","dist":{"shasum":"28cc90127bc5448f99e76096dc97470a94a66720","size":1070,"noattachment":false,"key":"/has-color/-/has-color-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1375493934277,"_cnpm_publish_time":1375493934277,"_hasShrinkwrap":false},"0.1.0":{"name":"has-color","version":"0.1.0","description":"Detect whether a terminal supports color","keywords":["color","colour","colors","terminal","console","cli","ansi","styles","tty","rgb","256","shell","xterm","command-line","support","capability","detect"],"homepage":"https://github.com/sindresorhus/has-color","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["has-color.js"],"main":"has-color","repository":{"type":"git","url":"git://github.com/sindresorhus/has-color.git"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"readmeFilename":"readme.md","_id":"has-color@0.1.0","dist":{"shasum":"ecfd536548be9a8c5715cf88f4dfd4a61d458649","size":1071,"noattachment":false,"key":"/has-color/-/has-color-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-color/download/has-color-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1375488379776,"_cnpm_publish_time":1375488379776,"_hasShrinkwrap":false}},"readme":"# has-color [![Build Status](https://travis-ci.org/sindresorhus/has-color.svg?branch=master)](https://travis-ci.org/sindresorhus/has-color)\n\n> Detect whether a terminal supports color.\n\nUsed in the terminal color module [chalk](https://github.com/sindresorhus/chalk).\n\n\n## Install\n\n```bash\n$ npm install --save has-color\n```\n\n\n## Usage\n\n```js\nvar hasColor = require('has-color');\n\nif (hasColor) {\n\tconsole.log('Terminal supports color.');\n}\n```\n\nIt obeys the `--color` and `--no-color` CLI flags.\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/has-color#readme","bugs":{"url":"https://github.com/sindresorhus/has-color/issues"},"license":"MIT"}