{"_id":"ansi-color","_rev":"4533534","name":"ansi-color","description":"This module provides basic ANSI color code support, to allow you to format your console output with foreground and background colors as well as providing bold, italic and underline support.","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"loopj","email":"james@loopj.com"}],"time":{"modified":"2026-04-09T14:27:14.000Z","created":"2013-12-20T07:24:19.031Z","0.2.2":"2025-12-11T04:35:12.625Z","0.2.1":"2013-12-20T07:24:19.031Z"},"users":{},"author":{"name":"James Smith","email":"james@loopj.com"},"repository":{"type":"git","url":"git+https://github.com/loopj/commonjs-ansi-color.git"},"versions":{"0.2.2":{"name":"ansi-color","version":"0.2.2","description":"This module provides basic ANSI color code support, to allow you to format your console output with foreground and background colors as well as providing bold, italic and underline support.","author":{"name":"James Smith","email":"james@loopj.com"},"directories":{"lib":"./lib"},"main":"./lib/ansi-color.js","homepage":"https://github.com/loopj/commonjs-ansi-color","repository":{"type":"git","url":"git+https://github.com/loopj/commonjs-ansi-color.git"},"bugs":{"url":"https://github.com/loopj/commonjs-ansi-color/issues"},"keywords":["ansi","color","console"],"license":"BSD License","contributors":[{"name":"vBm","email":"the.vbm@gmail.com"}],"_id":"ansi-color@0.2.2","gitHead":"287385e17e126a9a1e9cb97810249215e324a2fe","_nodeVersion":"24.10.0","_npmVersion":"11.6.0","dist":{"shasum":"c1ed2bf6afecf829c2bd043fae4c04320336243c","size":2408,"noattachment":false,"key":"/ansi-color/-/ansi-color-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ansi-color/download/ansi-color-0.2.2.tgz"},"_npmUser":{"name":"loopj","email":"james@loopj.com"},"maintainers":[{"name":"loopj","email":"james@loopj.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ansi-color_0.2.2_1765427712420_0.5698625202091316"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-11T04:35:12.625Z","publish_time":1765427712625,"_source_registry_name":"default","_cnpm_publish_time":1765427712625},"0.2.1":{"name":"ansi-color","description":"This module provides basic ANSI color code support, to allow you to format your console output with foreground and background colors as well as providing bold, italic and underline support.","version":"0.2.1","author":{"name":"James Smith","email":"james@loopj.com"},"keywords":["ansi","color","console"],"directories":{"lib":"./lib"},"repositories":[{"type":"git","url":"git://github.com/loopj/commonjs-ansi-color.git"}],"main":"./lib/ansi-color","_id":"ansi-color@0.2.1","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"3e75c037475217544ed763a8db5709fa9ae5bf9a","size":2523,"noattachment":false,"key":"/ansi-color/-/ansi-color-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ansi-color/download/ansi-color-0.2.1.tgz"},"publish_time":1387524259031,"maintainers":[{"name":"loopj","email":"james@loopj.com"}],"_cnpm_publish_time":1387524259031,"_hasShrinkwrap":false}},"readme":"ANSI Color Code Output Support for CommonJS + Node.js\n===========================================\n\nThis CommonJS module provides basic ANSI color code support, to allow you to\nformat your console output with foreground and background colors as well as\nproviding bold and underline support.\n\nThis module does not modify any built-in object prototypes, and so is safe\nto use with other modules.\n\nTested on node.js.\n\nBasic usage:\n-----------\n    // Load the module\n    var color = require(\"ansi-color\").set;\n\n    // Print the word \"Error\" to stdout in red\n    console.log(color(\"Error\", \"red\"));\n\n    // Print the word \"Error\" in red and underlined\n    console.log(color(\"Error\", \"red+underline\"));\n\n    // Print the word \"Success\" in bold green, followed by a message\n    console.log(color(\"Success\", \"green+bold\"), \"Something was successful!\");\n\nSupported Colors/Formats:\n-------------------------\nNote: Any of the below formatting strings can be combined together by joining\ntogether desired formats with a + symbol. Eg: bold+cyan+white_bg\n\n- Bold Text: bold\n- Underlined Text: underline\n- Blinking Text: blink\n- Black Text: black\n- Red Text: red\n- Green Text: green\n- Yellow Text: yellow\n- Blue Text: blue\n- Magenta Text: magenta\n- Cyan Text: cyan\n- White Text: white\n- Black Background: black_bg\n- Red Background: red_bg\n- Green Background: green_bg\n- Yellow Background: yellow_bg\n- Blue Background: blue_bg\n- Magenta Background: magenta_bg\n- Cyan Background: cyan_bg\n- White Background: white_bg\n","_attachments":{},"homepage":"https://github.com/loopj/commonjs-ansi-color","bugs":{"url":"https://github.com/loopj/commonjs-ansi-color/issues"},"license":"BSD License"}