{ "name": "supports-color", "version": "2.0.0", "description": "Detect whether a terminal supports color", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/chalk/supports-color.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "maintainers": [ { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, { "name": "Joshua Appelman", "email": "jappelman@xebia.com", "url": "jbnicolai.com" } ], "engines": { "node": ">=0.8.0" }, "scripts": { "test": "mocha" }, "files": [ "index.js" ], "keywords": [ "color", "colour", "colors", "terminal", "console", "cli", "ansi", "styles", "tty", "rgb", "256", "shell", "xterm", "command-line", "support", "supports", "capability", "detect" ], "devDependencies": { "mocha": "*", "require-uncached": "^1.0.2" }, "readme": "# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color)\n\n> Detect whether a terminal supports color\n\n\n## Install\n\n```\n$ npm install --save supports-color\n```\n\n\n## Usage\n\n```js\nvar supportsColor = require('supports-color');\n\nif (supportsColor) {\n\tconsole.log('Terminal supports color');\n}\n```\n\nIt obeys the `--color` and `--no-color` CLI flags.\n\nFor situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.\n\n\n## Related\n\n- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module\n- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/chalk/supports-color/issues" }, "homepage": "https://github.com/chalk/supports-color#readme", "_id": "supports-color@2.0.0", "_shasum": "535d045ce6b6363fa40117084629995e9df324c7", "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "_from": "supports-color@>=2.0.0 <3.0.0" }