{"name":"termcolor","version":"0.2.0","description":"console.color","keywords":["color","console"],"author":{"name":"SHIN Suzuki","email":"shinout310@gmail.com"},"repository":{"type":"git","url":"git://github.com/shinout/termcolor.git"},"bugs":{"url":"https://github.com/shinout/termcolor/issues"},"licences":[{"type":"MIT","url":"https://github.com/shinout/termcolor/raw/master/LICENCE"}],"main":"./termcolor.js","_npmUser":{"name":"shinout","email":"shinout310@gmail.com"},"_id":"termcolor@0.2.0","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"283afffd417a49ba730e94d5c120212e0b1fe475","tarball":"http://registry-npm.ywwl.com/termcolor/download/termcolor-0.2.0.tgz","integrity":"sha512-BJ/FFGl0cQAyYYmUurkqQUJA9RyD2PFt9YNd24nlt7HkeuZqUmHL86ELvaY6JY/TLUvmxzJY9/fHHk3jFibUSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUGp63TrpL0k3+j6Xi3Q4gV0GAq17xc3fr1P+yJOtnlAiEA+LmrvPQvhUu8xO4IZAXUZXGDhcSEGPHenRtnEA+NROA="}],"size":2391,"noattachment":false,"key":"/termcolor/-/termcolor-0.2.0.tgz"},"readme":"termcolor\n==========\n[Node.js] console.log, console.error with colors\n\n### Installation ###\n    git clone git://github.com/shinout/termcolor.git\n\n    OR\n\n    npm install termcolor\n\n### Usage ###\n#### require ####\n    var tc = require(\"termcolor\").define();\n    // remember to call define(), which defines methods under \"console\" object.\n\n    // var tc = require(\"termcolor\").define;\n    // this is the same as define(), as termcolor internally use Object.defineProperty's getter/setter.\n\n#### the simplest usage ####\n    console.green(\"this is green\"); // displays \"this is green\" with green color to STDOUT\n    console.cyan({hoge: \"foobar\"}, \"multi args? N.P.\");\n\n\n#### check which colors we can use ####\n    console.log(tc.colors);\n    /* \n        ['black',\n        'red',\n        'green',\n        'yellow',\n        'blue',\n        'purple',\n        'cyan',\n        'white']\n     */\n\n#### display to STDERR ####\n    console.eblue(\"blue color, to stderr\");\n    console.eyellow([\"yellow color\", \"to stderr\"], \"of course, any value is acceptable\");\n\n\n#### get colored string ####\n    var redstr    = tc.red(\"red string\");\n    var purplestr = tc.purple(\"purple string\");\n    console.log(redstr, purplestr);\n\n\n#### bold ####\n    console.bold(\"hoge\")\n    console.bold(\"green\", \"BOLD GREEN\")\n    console.purpleB(\"with B\")\n    console.eyellowB(\"e [color] B\")\n\n\n#### pass a color name as the first argument ####\n    console.color(\"green\", \"text with green color\");\n    console.ecolor(\"red\", \"text with red color\", \"to stderr\");\n","maintainers":[{"name":"shinout","email":"shinout310@gmail.com"}],"publish_time":1329952822668,"_cnpm_publish_time":1329952822668,"dist-tags":{"latest":"0.2.0"}}