UNPKG

webproxy

Version:

Modify http request/response in javascript config file easily.

32 lines (31 loc) 2.73 kB
{ "name": "colorful", "version": "2.1.0", "description": "colorful if a terminal tool for colors", "keywords": [ "color", "ansi", "256color", "console", "terminal" ], "author": { "name": "Hsiaoming Yang", "email": "lepture@me.com" }, "repository": { "type": "git", "url": "https://github.com/lepture/colorful.git" }, "devDependencies": { "jshint": "*" }, "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![screen shot](./screen-shot.png)\n\n## Programmer\n\nAs a programmer, you think they are functions:\n\n```javascript\nvar color = require('colorful')\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\n## Artist\n\nAs an artist, you need more colors.\n\n```javascript\nvar Color = require('colorful').Color;\n\nvar s = new Color('colorful');\ns.fgcolor = 13;\ns.bgcolor = 61;\n```\n\nSupport ANSI 256 colors. [0 - 255]\n\n\n## Toxic\n\nLet's posion the string object, just like colors does.\n\n```javascript\nrequire('colorful').toxic()\n'hello'.bold\n'hello'.red\n```\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# Colors\n\n- bold\n- faint\n- italic\n- underline\n- blink\n- overline\n- inverse\n- conceal\n- strike\n- black\n- black_bg\n- red\n- red_bg\n- green\n- green_bg\n- yellow\n- yellow_bg\n- blue\n- blue_bg\n- magenta\n- magenta_bg\n- cyan\n- cyan_bg\n- white\n- white_bg\n- grey\n- gray\n\n# Changelog\n\n**2013-05-22** `2.1.0`\n\nAdd toxic API.\n\n**2013-03-22** `2.0.2`\n\nMerge terminal into ansi.\n\n**2013-03-18** `2.0.1`\n\nAdd gray color.\n\n**2013-03-18** `2.0.0`\n\nRedesign. Support for ANSI 256 colors.\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/lepture/colorful/issues" }, "homepage": "https://github.com/lepture/colorful", "_id": "colorful@2.1.0", "_from": "colorful@^2.1.0" }