{"_id":"chalk","_rev":"405-9cd3c01f0e61d140d83c2a671812e7bb","name":"chalk","description":"Terminal string styling done right. Much color.","dist-tags":{"latest":"1.1.1"},"versions":{"0.1.0":{"name":"chalk","version":"0.1.0","description":"Terminal string styling done right","keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"homepage":"https://github.com/sindresorhus/chalk","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["chalk.js"],"main":"chalk","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk.git"},"scripts":{"test":"mocha"},"dependencies":{"has-color":"~0.1.0","ansi-styles":"~0.1.0"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"chalk@0.1.0","dist":{"shasum":"69afbee2ffab5e0db239450767a6125cbea50fa2","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.1":{"name":"chalk","version":"0.1.1","description":"Terminal string styling done right","keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"homepage":"https://github.com/sindresorhus/chalk","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["chalk.js"],"main":"chalk","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk.git"},"scripts":{"test":"mocha"},"dependencies":{"has-color":"~0.1.0","ansi-styles":"~0.1.0"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"chalk@0.1.1","dist":{"shasum":"fe6d90ae2c270424720c87ed92d36490b7d36ea0","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.2.0":{"name":"chalk","version":"0.2.0","description":"Terminal string styling done right","keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"homepage":"https://github.com/sindresorhus/chalk","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["chalk.js"],"main":"chalk","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk.git"},"scripts":{"test":"mocha"},"dependencies":{"has-color":"~0.1.0","ansi-styles":"~0.2.0"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"chalk@0.2.0","dist":{"shasum":"47270e80edce0e219911af65479d17db525ff5db","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.2.1":{"name":"chalk","version":"0.2.1","description":"Terminal string styling done right","keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"homepage":"https://github.com/sindresorhus/chalk","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["chalk.js"],"main":"chalk","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk.git"},"scripts":{"test":"mocha"},"dependencies":{"has-color":"~0.1.0","ansi-styles":"~0.2.0"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"chalk@0.2.1","dist":{"shasum":"7613e1575145b21386483f7f485aa5ffa8cbd10c","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.3.0":{"name":"chalk","version":"0.3.0","description":"Terminal string styling done right","keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"homepage":"https://github.com/sindresorhus/chalk","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"license":"MIT","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"files":["chalk.js"],"main":"chalk","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk.git"},"scripts":{"test":"mocha"},"dependencies":{"has-color":"~0.1.0","ansi-styles":"~0.2.0"},"devDependencies":{"mocha":"~1.12.0"},"engines":{"node":">=0.8.0"},"_id":"chalk@0.3.0","dist":{"shasum":"1c98437737f1199ebcc1d4c48fd41b9f9c8e8f23","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.4.0":{"name":"chalk","version":"0.4.0","description":"Terminal string styling done right. Created because the `colors` module does some really horrible things.","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"has-color":"~0.1.0","ansi-styles":"~1.0.0","strip-ansi":"~0.1.0"},"devDependencies":{"mocha":"~1.x"},"bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"homepage":"https://github.com/sindresorhus/chalk","_id":"chalk@0.4.0","dist":{"shasum":"5199a3ddcd0c1efe23bc08c1b027b06176e0c64f","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz"},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.5.0":{"name":"chalk","version":"0.5.0","description":"Terminal string styling done right. Created because the `colors` module does some really horrible things.","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","bench":"matcha benchmark.js"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"ansi-styles":"^1.1.0","escape-string-regexp":"^1.0.0","has-ansi":"^0.1.0","strip-ansi":"^0.3.0","supports-color":"^0.2.0"},"devDependencies":{"matcha":"^0.5.0","mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"homepage":"https://github.com/sindresorhus/chalk","_id":"chalk@0.5.0","_shasum":"375dfccbc21c0a60a8b61bc5b78f3dc2a55c212f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"375dfccbc21c0a60a8b61bc5b78f3dc2a55c212f","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.5.0.tgz"},"directories":{}},"0.5.1":{"name":"chalk","version":"0.5.1","description":"Terminal string styling done right. Created because the `colors` module does some really horrible things.","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/chalk"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"jbnicolai","email":"jappelman@xebia.com"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","bench":"matcha benchmark.js"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"ansi-styles":"^1.1.0","escape-string-regexp":"^1.0.0","has-ansi":"^0.1.0","strip-ansi":"^0.3.0","supports-color":"^0.2.0"},"devDependencies":{"matcha":"^0.5.0","mocha":"*"},"gitHead":"994758f01293f1fdcf63282e9917cb9f2cfbdaac","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"homepage":"https://github.com/sindresorhus/chalk","_id":"chalk@0.5.1","_shasum":"663b3a648b68b55d04690d49167aa837858f2174","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"dist":{"shasum":"663b3a648b68b55d04690d49167aa837858f2174","tarball":"http://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz"},"directories":{}},"1.0.0":{"name":"chalk","version":"1.0.0","description":"Terminal string styling done right. Much color.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/chalk"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"jbnicolai","email":"jappelman@xebia.com"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","bench":"matcha benchmark.js"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","string","ansi","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"ansi-styles":"^2.0.1","escape-string-regexp":"^1.0.2","has-ansi":"^1.0.3","strip-ansi":"^2.0.1","supports-color":"^1.3.0"},"devDependencies":{"matcha":"^0.6.0","mocha":"*"},"gitHead":"8864d3563313ed15574a38dd5c9d5966080c46ce","bugs":{"url":"https://github.com/sindresorhus/chalk/issues"},"homepage":"https://github.com/sindresorhus/chalk","_id":"chalk@1.0.0","_shasum":"b3cf4ed0ff5397c99c75b8f679db2f52831f96dc","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b3cf4ed0ff5397c99c75b8f679db2f52831f96dc","tarball":"http://registry.npmjs.org/chalk/-/chalk-1.0.0.tgz"},"directories":{}},"1.1.0":{"name":"chalk","version":"1.1.0","description":"Terminal string styling done right. Much color.","license":"MIT","repository":{"type":"git","url":"https://github.com/chalk/chalk"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"jbnicolai","email":"jappelman@xebia.com"},{"name":"unicorn","email":"sindresorhus+unicorn@gmail.com"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","bench":"matcha benchmark.js","coverage":"nyc npm test && nyc report","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","string","str","ansi","style","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"ansi-styles":"^2.1.0","escape-string-regexp":"^1.0.2","has-ansi":"^2.0.0","strip-ansi":"^3.0.0","supports-color":"^2.0.0"},"devDependencies":{"coveralls":"^2.11.2","matcha":"^0.6.0","mocha":"*","nyc":"^3.0.0","require-uncached":"^1.0.2","resolve-from":"^1.0.0","semver":"^4.3.3"},"gitHead":"e9bb6e6000b1c5d4508afabfdc85dd70f582f515","bugs":{"url":"https://github.com/chalk/chalk/issues"},"homepage":"https://github.com/chalk/chalk","_id":"chalk@1.1.0","_shasum":"09b453cec497a75520e4a60ae48214a8700e0921","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"dist":{"shasum":"09b453cec497a75520e4a60ae48214a8700e0921","tarball":"http://registry.npmjs.org/chalk/-/chalk-1.1.0.tgz"},"directories":{}},"1.1.1":{"name":"chalk","version":"1.1.1","description":"Terminal string styling done right. Much color.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chalk/chalk.git"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"jbnicolai","email":"jappelman@xebia.com"},{"name":"unicorn","email":"sindresorhus+unicorn@gmail.com"}],"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha","bench":"matcha benchmark.js","coverage":"nyc npm test && nyc report","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["color","colour","colors","terminal","console","cli","string","str","ansi","style","styles","tty","formatting","rgb","256","shell","xterm","log","logging","command-line","text"],"dependencies":{"ansi-styles":"^2.1.0","escape-string-regexp":"^1.0.2","has-ansi":"^2.0.0","strip-ansi":"^3.0.0","supports-color":"^2.0.0"},"devDependencies":{"coveralls":"^2.11.2","matcha":"^0.6.0","mocha":"*","nyc":"^3.0.0","require-uncached":"^1.0.2","resolve-from":"^1.0.0","semver":"^4.3.3","xo":"*"},"xo":{"envs":["node","mocha"]},"gitHead":"8b554e254e89c85c1fd04dcc444beeb15824e1a5","bugs":{"url":"https://github.com/chalk/chalk/issues"},"homepage":"https://github.com/chalk/chalk#readme","_id":"chalk@1.1.1","_shasum":"509afb67066e7499f7eb3535c77445772ae2d019","_from":".","_npmVersion":"2.13.5","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"509afb67066e7499f7eb3535c77445772ae2d019","tarball":"http://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz"},"directories":{}}},"readme":"

\n\t
\n\t
\n\t\"chalk\"\n\t
\n\t
\n\t
\n

\n\n> Terminal string styling done right\n\n[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk)\n[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master)\n[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4)\n\n\n[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough.\n\n**Chalk is a clean and focused alternative.**\n\n![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png)\n\n\n## Why\n\n- Highly performant\n- Doesn't extend `String.prototype`\n- Expressive API\n- Ability to nest styles\n- Clean and focused\n- Auto-detects color support\n- Actively maintained\n- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015\n\n\n## Install\n\n```\n$ npm install --save chalk\n```\n\n\n## Usage\n\nChalk comes with an easy to use composable API where you just chain and nest the styles you want.\n\n```js\nvar chalk = require('chalk');\n\n// style a string\nchalk.blue('Hello world!');\n\n// combine styled and normal strings\nchalk.blue('Hello') + 'World' + chalk.red('!');\n\n// compose multiple styles using the chainable API\nchalk.blue.bgRed.bold('Hello world!');\n\n// pass in multiple arguments\nchalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz');\n\n// nest styles\nchalk.red('Hello', chalk.underline.bgBlue('world') + '!');\n\n// nest styles of the same type even (color, underline, background)\nchalk.green(\n\t'I am a green line ' +\n\tchalk.blue.underline.bold('with a blue substring') +\n\t' that becomes green again!'\n);\n```\n\nEasily define your own themes.\n\n```js\nvar chalk = require('chalk');\nvar error = chalk.bold.red;\nconsole.log(error('Error!'));\n```\n\nTake advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data).\n\n```js\nvar name = 'Sindre';\nconsole.log(chalk.green('Hello %s'), name);\n//=> Hello Sindre\n```\n\n\n## API\n\n### chalk.`