]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/ansistyles/package.json
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / ansistyles / package.json
1 {
2   "name": "ansistyles",
3   "version": "0.1.3",
4   "description": "Functions that surround a string with ansistyle codes so it prints in style.",
5   "main": "ansistyles.js",
6   "scripts": {
7     "test": "node test/ansistyles.js"
8   },
9   "repository": {
10     "type": "git",
11     "url": "git://github.com/thlorenz/ansistyles.git"
12   },
13   "keywords": [
14     "ansi",
15     "style",
16     "terminal",
17     "console"
18   ],
19   "author": {
20     "name": "Thorsten Lorenz",
21     "email": "thlorenz@gmx.de",
22     "url": "thlorenz.com"
23   },
24   "license": "MIT",
25   "readmeFilename": "README.md",
26   "gitHead": "27bf1bc65231bcc7fd109bf13b13601b51f8cd04",
27   "readme": "# ansistyles [![build status](https://secure.travis-ci.org/thlorenz/ansistyles.png)](http://next.travis-ci.org/thlorenz/ansistyles)\n\nFunctions that surround a string with ansistyle codes so it prints in style.\n\nIn case you need colors, like `red`, have a look at [ansicolors](https://github.com/thlorenz/ansicolors).\n\n## Installation\n\n    npm install ansistyles\n\n## Usage\n\n```js\nvar styles = require('ansistyles');\n\nconsole.log(styles.bright('hello world'));    // prints hello world in 'bright' white\nconsole.log(styles.underline('hello world')); // prints hello world underlined\nconsole.log(styles.inverse('hello world'));   // prints hello world black on white\n```\n\n## Combining with ansicolors\n\nGet the ansicolors module:\n\n    npm install ansicolors\n\n```js\nvar styles = require('ansistyles')\n  , colors = require('ansicolors');\n\n  console.log(\n    // prints hello world underlined in blue on a green background\n    colors.bgGreen(colors.blue(styles.underline('hello world'))) \n  );\n```\n\n## Tests\n\nLook at the [tests](https://github.com/thlorenz/ansistyles/blob/master/test/ansistyles.js) to see more examples and/or run them via: \n\n    npm explore ansistyles && npm test\n\n## More Styles\n\nAs you can see from [here](https://github.com/thlorenz/ansistyles/blob/master/ansistyles.js#L4-L15), more styles are available,\nbut didn't have any effect on the terminals that I tested on Mac Lion and Ubuntu Linux.\n\nI included them for completeness, but didn't show them in the examples because they seem to have no effect.\n\n### reset\n\nA style reset function is also included, please note however that this is not nestable.\n\nTherefore the below only underlines `hell` only, but not `world`.\n\n```js\nconsole.log(styles.underline('hell' + styles.reset('o') + ' world'));\n```\n\nIt is essentially the same as:\n\n```js\nconsole.log(styles.underline('hell') + styles.reset('') + 'o world');\n```\n\n\n\n## Alternatives\n\n**ansistyles** 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",
28   "bugs": {
29     "url": "https://github.com/thlorenz/ansistyles/issues"
30   },
31   "homepage": "https://github.com/thlorenz/ansistyles",
32   "_id": "ansistyles@0.1.3",
33   "dist": {
34     "shasum": "b14f315fe763a2b3a88df9d3261a517e666c4615"
35   },
36   "_from": "ansistyles@0.1.3",
37   "_resolved": "https://registry.npmjs.org/ansistyles/-/ansistyles-0.1.3.tgz"
38 }