{"name":"ansicolors","version":"0.2.0","description":"Functions that surround a string with ansicolor codes so it prints in color.","main":"ansicolors.js","scripts":{"test":"node test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/ansicolors.git"},"keywords":["ansi","colors","highlight","string"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"license":"MIT","readmeFilename":"README.md","gitHead":"858847ca28e8b360d9b70eee0592700fa2ab087d","readme":"# ansicolors [![build status](https://secure.travis-ci.org/thlorenz/ansicolors.png)](http://next.travis-ci.org/thlorenz/ansicolors)\n\nFunctions that surround a string with ansicolor codes so it prints in color.\n\n## Installation\n\n    npm install ansicolors\n\n## Usage\n\n```js\nvar colors = require('ansicolors');\n\n// foreground colors\nvar redHerring = colors.red('herring');\nvar blueMoon = colors.blue('moon');\nvar brighBlueMoon = colors.brightBlue('moon');\n\nconsole.log(redHerring);      // this will print 'herring' in red\nconsole.log(blueMoon);        // this 'moon' in blue\nconsole.log(brightBlueMoon);  // I think you got the idea\n\n// background colors\nconsole.log(colors.bgYellow('printed on yellow background'));\nconsole.log(colors.bgBlue('printed on blue background'));\n\n// mixing background and foreground colors\n// below two lines have same result (order in which bg and fg are combined doesn't matter)\nconsole.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));\nconsole.log(colors.blue(colors.bgYellow('printed on yellow background in blue')));\n```\n\n## Tests\n\nLook at the [tests](https://github.com/thlorenz/ansicolors/blob/master/test/ansicolors.js) to see more examples and/or run them via: \n\n    npm explore ansicolors && npm test\n\n## Alternatives\n\n**ansicolors** tries to meet simple use cases with a very simple API. However, if you need a more powerful ansi formatting tool, \nI'd suggest to look at the [features](https://github.com/TooTallNate/ansi.js#features) of the [ansi module](https://github.com/TooTallNate/ansi.js).\n","_id":"ansicolors@0.2.0","dist":{"shasum":"8bc9bf411277f265d459a1ab4417e92ec0486e08","tarball":"http://registry-npm.ywwl.com/ansicolors/download/ansicolors-0.2.0.tgz","integrity":"sha512-0CltMxuMvGh1673UzUbdl57kQ/gvlP0dqcsnEY32oghNFH4g26wOnPPO6GvaFEx6Vx8+ze2fyrLP39SbG+g4Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICygWPQZ+KpF1brc4yJq4EvU3ZfS2qUClE/Iw+rrJ0cwAiB74KvUGvOYyh7XfblEDzdgUNqMSWsUVP2awgooqpOmGw=="}],"size":2639,"noattachment":false,"key":"/ansicolors/-/ansicolors-0.2.0.tgz"},"_npmVersion":"1.1.69","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{},"publish_time":1358010632152,"_cnpm_publish_time":1358010632152,"dist-tags":{"latest":"0.3.2"}}