"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/ansicolors/package.json" (7 Feb 2017, 3706 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "_from": "ansicolors@>=0.3.2 <0.4.0",
    3   "_id": "ansicolors@0.3.2",
    4   "_location": "/ansicolors",
    5   "_npmUser": {
    6     "name": "thlorenz",
    7     "email": "thlorenz@gmx.de"
    8   },
    9   "_npmVersion": "1.3.11",
   10   "_phantomChildren": {},
   11   "_requiredBy": [
   12     "/npm"
   13   ],
   14   "_resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz",
   15   "_shasum": "665597de86a9ffe3aa9bfbe6cae5c6ea426b4979",
   16   "_shrinkwrap": null,
   17   "author": {
   18     "name": "Thorsten Lorenz",
   19     "email": "thlorenz@gmx.de",
   20     "url": "thlorenz.com"
   21   },
   22   "bugs": {
   23     "url": "https://github.com/thlorenz/ansicolors/issues"
   24   },
   25   "dependencies": {},
   26   "description": "Functions that surround a string with ansicolor codes so it prints in color.",
   27   "devDependencies": {},
   28   "directories": {},
   29   "dist": {
   30     "shasum": "665597de86a9ffe3aa9bfbe6cae5c6ea426b4979",
   31     "tarball": "http://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz"
   32   },
   33   "gitHead": "858847ca28e8b360d9b70eee0592700fa2ab087d",
   34   "homepage": "https://github.com/thlorenz/ansicolors#readme",
   35   "keywords": [
   36     "ansi",
   37     "colors",
   38     "highlight",
   39     "string"
   40   ],
   41   "license": "MIT",
   42   "main": "ansicolors.js",
   43   "maintainers": [
   44     {
   45       "name": "thlorenz",
   46       "email": "thlorenz@gmx.de"
   47     }
   48   ],
   49   "name": "ansicolors",
   50   "optionalDependencies": {},
   51   "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\nIn case you need styles, like `bold`, have a look at [ansistyles](https://github.com/thlorenz/ansistyles).\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## Advanced API\n\n**ansicolors** allows you to access opening and closing escape sequences separately.\n\n```js\nvar colors = require('ansicolors');\n\nfunction inspect(obj, depth) {\n  return require('util').inspect(obj, false, depth || 5, true);\n}\n\nconsole.log('open blue', inspect(colors.open.blue));\nconsole.log('close bgBlack', inspect(colors.close.bgBlack));\n\n// => open blue '\\u001b[34m'\n//    close bgBlack '\\u001b[49m'\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",
   52   "readmeFilename": "README.md",
   53   "repository": {
   54     "type": "git",
   55     "url": "git://github.com/thlorenz/ansicolors.git"
   56   },
   57   "scripts": {
   58     "test": "node test/*.js"
   59   },
   60   "version": "0.3.2"
   61 }