{"_id":"color-terminal","_rev":"15-48cd77ef31f4b45dbcc16da5a1dea683","name":"color-terminal","description":"Control your terminal colours.","dist-tags":{"latest":"0.0.3-4"},"versions":{"0.0.2":{"name":"color-terminal","description":"Control your terminal colours. Forked from Mattijs Hoitink's node-terminal (https://github.com/mattijs/node-terminal)","author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"contributors":[{"name":"Alexander 'yumitsu' Zinchenko","email":"yumitsu@mouseed.com","url":"https://github.com/yumitsu/"}],"homepage":"https://github.com/forgotten-labors/node-color-terminal","bugs":{"email":"forlab@mouseed.com","url":"https://github.com/forgotten-labors/node-color-terminal/issues"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"},"main":"color-terminal","files":["index.js","LICENSE","package.json","README.md","color-terminal.js"],"version":"0.0.2","keywords":["terminal","colors","text"],"_npmUser":{"name":"forgotten-labors","email":"forlab-public@mouseed.com"},"_id":"color-terminal@0.0.2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"a7aa3f32f628ced05db13298bddc40bfc667dbc2","tarball":"https://registry.npmjs.org/color-terminal/-/color-terminal-0.0.2.tgz","integrity":"sha512-xsdipClvBGpMMjjPtHCIRtK6ypatTe/btpaD5qfTcDh8/vGZVMbsD+I1OlGiIqFW4781K75tM+fSYSH/U8EEtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtvoKMZM+MS4e76fXoJt/keSPTQeuRToXpWR4KHvbVCAIhAJq94jb9mBXawe53AfaiZsN/CHqlY4dpgUYygXa55hit"}]},"maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}]},"0.0.3":{"name":"color-terminal","description":"Control your terminal colours.","author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"contributors":[{"name":"Alexander 'yumitsu' Zinchenko","email":"yumitsu@mouseed.com","url":"https://github.com/yumitsu/"},{"name":"Forgotten Labors Initiative","url":"https://github.com/forgotten-labour"}],"homepage":"https://github.com/forgotten-labors/node-color-terminal","bugs":{"email":"forlab@mouseed.com","url":"https://github.com/forgotten-labors/node-color-terminal/issues"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"},"main":"color-terminal","files":["index.js","LICENSE","package.json","README.md","color-terminal.js"],"version":"0.0.3","keywords":["terminal","colors","text"],"_npmUser":{"name":"forgotten-labors","email":"forlab-public@mouseed.com"},"_id":"color-terminal@0.0.3","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"ec7ad254f684537e27a85c198b450cae829a5d3f","tarball":"https://registry.npmjs.org/color-terminal/-/color-terminal-0.0.3.tgz","integrity":"sha512-g/ovdD9jFzo/g8V5bKsBtRGOQZVq2bOS5Dt9anyrLkBQN6DyR2Wgd9HZ+uESBjSzSiu2uaLE5KiBqWyltLgpkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICLpOwU9D851yt9DU3VQVFOkZnale+VZaEnGxc2SiR3dAiBrR/7ugsXaGdm1y104FMAQAMVZN6EY5bZqSK6BKGpjQw=="}]},"maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}]},"0.0.3-1":{"name":"color-terminal","description":"Control your terminal colours.","author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"contributors":[{"name":"Alexander 'yumitsu' Zinchenko","email":"yumitsu@mouseed.com","url":"https://github.com/yumitsu/"},{"name":"Forgotten Labors Initiative","email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors"}],"homepage":"https://github.com/forgotten-labors/node-color-terminal","bugs":{"email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors/node-color-terminal/issues"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"},"main":"color-terminal","files":["index.js","LICENSE","package.json","README.md","color-terminal.js"],"version":"0.0.3-1","keywords":["terminal","colors","text"],"_npmUser":{"name":"forgotten-labors","email":"forlab-public@mouseed.com"},"_id":"color-terminal@0.0.3-1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"5d3c898ed4170b4fd07dc2b43fe13e06d5b35d7e","tarball":"https://registry.npmjs.org/color-terminal/-/color-terminal-0.0.3-1.tgz","integrity":"sha512-0TdbiMP/Phe4Xt4zFSHwSuYbtnzUh0SXr9JSjczPlsQw3JGbo9l0ImxKQpQm4qd1z6wlLVAldBS0I0D711mLxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNxtdGjJnTvKOG5m8YSr1BFpMCRJcoOx753mMYYpH3tQIgJBE93c0Md9atHhHSuUj/gtyaUDxNnljFJp8cHsuyE/U="}]},"maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}]},"0.0.3-2":{"name":"color-terminal","description":"Control your terminal colours.","author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"contributors":[{"name":"Alexander 'yumitsu' Zinchenko","email":"yumitsu@mouseed.com","url":"https://github.com/yumitsu/"},{"name":"Forgotten Labors Initiative","email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors"}],"homepage":"https://github.com/forgotten-labors/node-color-terminal","bugs":{"email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors/node-color-terminal/issues"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"},"main":"color-terminal","files":["index.js","LICENSE","package.json","README.md","color-terminal.js"],"version":"0.0.3-2","keywords":["terminal","colors","text"],"_npmUser":{"name":"forgotten-labors","email":"forlab-public@mouseed.com"},"_id":"color-terminal@0.0.3-2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"69f860596bdebf602894e043c48abf725cc23213","tarball":"https://registry.npmjs.org/color-terminal/-/color-terminal-0.0.3-2.tgz","integrity":"sha512-5LFA60muI7QJGqEA4k74MnfUPBNcnTGV/IeDo4KnEE961mqNzOvQo5b+5pY/hYWj74HD2I4j1ixTk4SlDoDMYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeHpCPr/tzCawsxZ6lafffsUeTMBVp3L7UCKNXDY7/CQIhAM47R40fwiTSbKQr61Si81Bx1nHL2Dr9q0lyIQxrOwKY"}]},"maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}]},"0.0.3-3":{"name":"color-terminal","description":"Control your terminal colours.","author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"contributors":[{"name":"Alexander 'yumitsu' Zinchenko","email":"yumitsu@mouseed.com","url":"https://github.com/yumitsu/"},{"name":"Forgotten Labors Initiative","email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors"}],"homepage":"https://github.com/forgotten-labors/node-color-terminal","bugs":{"email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors/node-color-terminal/issues"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"},"main":"color-terminal","files":["index.js","LICENSE","package.json","README.md","color-terminal.js"],"version":"0.0.3-3","keywords":["terminal","colors","text"],"_npmUser":{"name":"forgotten-labors","email":"forlab-public@mouseed.com"},"_id":"color-terminal@0.0.3-3","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"f88d21aa09dcb3011e3a7e78e0ab7ca4d3514418","tarball":"https://registry.npmjs.org/color-terminal/-/color-terminal-0.0.3-3.tgz","integrity":"sha512-FyarvWpWZh59pRQZ9qC6yt4tjDtnYI5O+3BJyR2PjfQF4oHMDuk+5j+3ImdhJzBu770f0nNx5w256ws0MZ2kQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQNWxnzm1VDEjHHRVGdeZ/71jI2DiY5YjPi/HiIcKhFgIgMcp+tPEMnr0EeAumBDdM2BFHgW/4wLNVlrDZSyfJWUU="}]},"maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}]},"0.0.3-4":{"name":"color-terminal","description":"Control your terminal colours.","author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"contributors":[{"name":"Alexander 'yumitsu' Zinchenko","email":"yumitsu@mouseed.com","url":"https://github.com/yumitsu/"},{"name":"Forgotten Labors Initiative","email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors"}],"homepage":"https://github.com/forgotten-labors/node-color-terminal","bugs":{"email":"forlab-public@mouseed.com","url":"https://github.com/forgotten-labors/node-color-terminal/issues"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"},"main":"color-terminal","files":["index.js","LICENSE","package.json","README.md","color-terminal.js"],"version":"0.0.3-4","keywords":["terminal","colors","text"],"_npmUser":{"name":"forgotten-labors","email":"forlab-public@mouseed.com"},"_id":"color-terminal@0.0.3-4","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"e8f600b3b123143510bdbf3563cba32a761ee403","tarball":"https://registry.npmjs.org/color-terminal/-/color-terminal-0.0.3-4.tgz","integrity":"sha512-XJV3doRgs9xClPLNQrf56ryJUP0vBU8okdnEWhEBHWxX/Xw2ca1fJeOtW1OaOg6UZueZCgHEYA73iESZpJKrUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhNFeAiOsuhlJQtSgt2fDMz5JOvBbPMzxHmwXgGLDiFAiBLttHNkhch62jMbG0NHC4lIu4DLQuOfIlKOGkywl4xOQ=="}]},"maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}]}},"readme":"# Color Terminal\n\n`color-terminal` is a small package that can be used with [node.js](http://nodejs.org) to control terminal output. The package can move the cursor in the terminal and output colored text. It can colorize a message with a simple straightforward markup syntax.\n\n# Installation and use\n\nInstall with [npm](http://npmjs.org) to current directory:\n\n```bash\n  npm -d install color-terminal .\n```\n\nOr install globally:\n\n```bash\n  npm -d -g install color-terminal\n```\n\nThen `require()` package from your script:\n\n```coffeescript\n  terminal = require('color-terminal')\n```\n\n# Examples\n\nSome examples from the `examples` directory. \n\n## Colors\n\nControl colored output. See also `examples/colors.js`. Colors may vary depending on the terminal settings.\n\nSimple color changing:\n\n```coffeescript   \n  terminal.color('magenta').write('Unicorn');\n```\n\nThis will output `Unicorn` in magenta (or purple). To change the background color to magenta:\n\n```coffeescript\n  terminal.color('magenta', 'background').write('Unicorn');\n```\n\n### Color formatting\n\n`color-terminal` supports formatting strings with colors using a simple syntax. Outputting `Unicorn` in magenta (like the example above) would look like this:\n\n```coffeescript\n  terminal.colorize('%mUnicorn');\n  \n  # And changing the background color to magenta\n  terminal.colorize('%5Unicorn');\n```\n\nUsing this syntax we can create `Rainbows` easily in one line:\n\n```coffeescript\n  terminal.colorize('%rR%ma%ci%bn%yb%go%rw\\n');\n  \n  # Or with background colors\n  terminal.colorize('%w%1  R  %2  A  %3  I  %4  N  %5  B  %6  O  %7  W  %n ');\n```\n\nThe colorize function accepts the following modifiers:\n\n                      text      text            background\n          ------------------------------------------------\n          %k %K %0    black     dark grey       black\n          %r %R %1    red       bold red        red\n          %g %G %2    green     bold green      green\n          %y %Y %3    yellow    bold yellow     yellow\n          %b %B %4    blue      bold blue       blue\n          %m %M %5    magenta   bold magenta    magenta\n          %p %P       magenta (think: purple)\n          %c %C %6    cyan      bold cyan       cyan\n          %w %W %7    white     bold white      white\n    \n          %F     Blinking, Flashing\n          %U     Underline\n          %8     Reverse\n          %_,%9  Bold\n    \n          %n,%N  Resets the color\n          %%     A single %\n\nColored ouput can be reset with the `reset()` function:\n\n```coffeescript\n  terminal.color('red').write('This is red,').reset().write(' and this is not');\n```\n\n# Credits\n\nOriginal package by Mattijs Hoitink.\n* [mattijs@GitHub](https://github.com/mattijs) — GitHub profile.\n* [mattijs/node-terminal](https://github.com/mattijs/node-terminal) — original package.\n* [monkeyandmachine](http://monkeyandmachine.com) — author's blog.\n\nThis version of the package maintained and developed by [Forgotten Labors Initiative](https://forgotten-labors.github.com).\n\n# License\n\n`color-terminal` is licensed under the [MIT License](http://opensource.org/licenses/mit-license.php).\n\n","maintainers":[{"name":"forgotten-labors","email":"forlab-public@mouseed.com"}],"time":{"modified":"2022-06-13T06:31:36.707Z","created":"2011-12-30T23:09:11.773Z","0.0.2":"2011-12-30T23:09:13.214Z","0.0.3":"2011-12-30T23:18:11.213Z","0.0.3-1":"2011-12-30T23:58:48.513Z","0.0.3-2":"2011-12-31T00:42:19.535Z","0.0.3-3":"2012-01-01T19:07:49.123Z","0.0.3-4":"2012-01-22T05:32:16.886Z"},"author":{"name":"Mattijs Hoitink","email":"mattijs@monkeyandmachine.com","url":"http://monkeyandmachine.com/"},"repository":{"type":"git","url":"git://github.com/forgotten-labors/node-color-terminal.git"}}