package.json 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "ansicolors@~0.2.1",
  6. "scope": null,
  7. "escapedName": "ansicolors",
  8. "name": "ansicolors",
  9. "rawSpec": "~0.2.1",
  10. "spec": ">=0.2.1 <0.3.0",
  11. "type": "range"
  12. },
  13. "/data/feimat/test_yali/liveserver/node_modules/cardinal"
  14. ]
  15. ],
  16. "_from": "ansicolors@>=0.2.1 <0.3.0",
  17. "_id": "ansicolors@0.2.1",
  18. "_inCache": true,
  19. "_location": "/ansicolors",
  20. "_npmUser": {
  21. "name": "thlorenz",
  22. "email": "thlorenz@gmx.de"
  23. },
  24. "_npmVersion": "1.1.69",
  25. "_phantomChildren": {},
  26. "_requested": {
  27. "raw": "ansicolors@~0.2.1",
  28. "scope": null,
  29. "escapedName": "ansicolors",
  30. "name": "ansicolors",
  31. "rawSpec": "~0.2.1",
  32. "spec": ">=0.2.1 <0.3.0",
  33. "type": "range"
  34. },
  35. "_requiredBy": [
  36. "/cardinal"
  37. ],
  38. "_resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz",
  39. "_shasum": "be089599097b74a5c9c4a84a0cdbcdb62bd87aef",
  40. "_shrinkwrap": null,
  41. "_spec": "ansicolors@~0.2.1",
  42. "_where": "/data/feimat/test_yali/liveserver/node_modules/cardinal",
  43. "author": {
  44. "name": "Thorsten Lorenz",
  45. "email": "thlorenz@gmx.de",
  46. "url": "thlorenz.com"
  47. },
  48. "bugs": {
  49. "url": "https://github.com/thlorenz/ansicolors/issues"
  50. },
  51. "dependencies": {},
  52. "description": "Functions that surround a string with ansicolor codes so it prints in color.",
  53. "devDependencies": {},
  54. "directories": {},
  55. "dist": {
  56. "shasum": "be089599097b74a5c9c4a84a0cdbcdb62bd87aef",
  57. "tarball": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz"
  58. },
  59. "gitHead": "858847ca28e8b360d9b70eee0592700fa2ab087d",
  60. "homepage": "https://github.com/thlorenz/ansicolors#readme",
  61. "keywords": [
  62. "ansi",
  63. "colors",
  64. "highlight",
  65. "string"
  66. ],
  67. "license": "MIT",
  68. "main": "ansicolors.js",
  69. "maintainers": [
  70. {
  71. "name": "thlorenz",
  72. "email": "thlorenz@gmx.de"
  73. }
  74. ],
  75. "name": "ansicolors",
  76. "optionalDependencies": {},
  77. "readme": "# ansicolors [![build status](https://secure.travis-ci.org/thlorenz/ansicolors.png)](http://next.travis-ci.org/thlorenz/ansicolors)\n\nFunctions that surround a string with ansicolor codes so it prints in color.\n\n## Installation\n\n npm install ansicolors\n\n## Usage\n\n```js\nvar colors = require('ansicolors');\n\n// foreground colors\nvar redHerring = colors.red('herring');\nvar blueMoon = colors.blue('moon');\nvar brighBlueMoon = colors.brightBlue('moon');\n\nconsole.log(redHerring); // this will print 'herring' in red\nconsole.log(blueMoon); // this 'moon' in blue\nconsole.log(brightBlueMoon); // I think you got the idea\n\n// background colors\nconsole.log(colors.bgYellow('printed on yellow background'));\nconsole.log(colors.bgBrightBlue('printed on bright blue background'));\n\n// mixing background and foreground colors\n// below two lines have same result (order in which bg and fg are combined doesn't matter)\nconsole.log(colors.bgYellow(colors.blue('printed on yellow background in blue')));\nconsole.log(colors.blue(colors.bgYellow('printed on yellow background in blue')));\n```\n\n## Tests\n\nLook at the [tests](https://github.com/thlorenz/ansicolors/blob/master/test/ansicolors.js) to see more examples and/or run them via: \n\n npm explore ansicolors && npm test\n\n## Alternatives\n\n**ansicolors** tries to meet simple use cases with a very simple API. However, if you need a more powerful ansi formatting tool, \nI'd suggest to look at the [features](https://github.com/TooTallNate/ansi.js#features) of the [ansi module](https://github.com/TooTallNate/ansi.js).\n",
  78. "readmeFilename": "README.md",
  79. "repository": {
  80. "type": "git",
  81. "url": "git://github.com/thlorenz/ansicolors.git"
  82. },
  83. "scripts": {
  84. "test": "node test/*.js"
  85. },
  86. "version": "0.2.1"
  87. }