{"dist":{"shasum":"25cd8f2bce8ea393e367a0961398e8242972ce17","tarball":"https://registry.npmjs.org/colorful/-/colorful-1.2.2.tgz","integrity":"sha512-d/NqCNheW1T/wHqo+mz2CHWn+hSgWWA3EftZP7WgYddNeTFJuvWn6w3mG28Jv6KwQz866gism4E+7DdnbM/GgQ==","signatures":[{"sig":"MEUCIQD87VWbelPG/ZNUD1mPpXEHS9/4Zv5v3wzpn6GiB4pNxAIgQWjpPDOLfWDP4gzLSwdaaQi5ZO3MvV8cK5kwz4IVuU4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"name":"colorful","author":{"name":"Hsiaoming Yang","email":"lepture@me.com"},"readme":"# Colorful\n\nIt's not just color, it's everything colorful in terminal.\n\n---------------------\n\n# Color\n\nColor in terminal and only terminal.\n\n## Programmer\n\nAs a programmer, you think they are functions:\n\n```javascript\nvar color = require('colorful').color\ncolor.red('hello')\ncolor.underline('hello')\ncolor.red(color.underline('hello'))\n```\n\n## Human\n\nAs a human, you think you are a painter:\n\n```javascript\nvar paint = require('colorful').paint\npaint('hello').red.color\npaint('hello').bold.underline.red.color\n```\n\n**WTF**, is bold, underline a color? If you don't like the idea, try:\n\n```javascript\npaint('hello').bold.underline.red.style\n```\n\n## Alien\n\nAs an alien, you are from outer space, you think it should be:\n\n```javascript\nrequire('colorful').colorful()\n'hello'.to.red.color\n'hello'.to.underline.bold.red.color\n'hello'.to.underline.bold.red.style\n```\n\n## Detective\n\nAs a detective, you think we should detect if color is supported:\n\n```javascript\nrequire('colorful').isSupported\n\n// we can disable color\nrequire('colorful').disabled = true\nrequire('colorful').isSupported\n// => false\n```\n\n------\n\n# Logging\n\nColorful and nested logging in terminal.\n\n[![nico](http://lab.lepture.com/nico/nico-look.png)](http://lab.lepture.com/nico/)\n\n## Favorite\n\nDefault is my favorite, we should do nothing:\n\n```javascript\nvar logging = require('colorful').logging;\n// start a nested logging\nlogging.start('Start Application')\nlogging.info('send an info message')\n\n// start another nested logging\nlogging.start('Start subprocess')\nlogging.warn('send a warn message')\nlogging.end('End subprocess')\n\nlogging.error('send an error message')\nlogging.debug('send a debug message')\nlogging.end('End Application')\n```\n\n## Config\n\nI want to show debug message:\n\n```javascript\nlogging.config('debug')\n// or\nlogging.config({level: 'debug'})\nlogging.config({verbose: true})\n```\n\n## Scheme\n\nDefine your logging scheme:\n\n```javascript\nvar scheme = {\n    debug: {\n        start: '# ',\n        color: 'gray',\n        end: ' #'\n    },\n    info: {\n        start: 'v ',\n        color: 'green'\n    },\n    warn: {\n        start: '! ',\n        color: 'yellow'\n    },\n    error: {\n        start: 'x ',\n        color: 'red'\n    },\n    start: {\n        start: '> '\n    },\n    end: {\n        start: '< '\n    }\n}\nlogging.scheme = scheme;\n```\n","scripts":{"test":"make test"},"_npmUser":{"name":"lepture","email":"lepture@me.com"},"keywords":["color","logging","console","terminal","command"],"repository":{"url":"https://github.com/lepture/colorful.git","type":"git"},"_npmVersion":"1.1.66","description":"colorful if a terminal tool for color, logging and command","directories":{},"maintainers":[{"name":"lepture","email":"sopheryoung@gmail.com"}],"readmeFilename":"README.md","devDependencies":{"mocha":"*","jshint":"*","should":"*"},"_id":"colorful@1.2.2","version":"1.2.2"}