UNPKG

motion

Version:

motion - moving development forward

122 lines (121 loc) 4.43 kB
{ "_args": [ [ "supports-color@https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "supports-color@>=3.1.2 <4.0.0", "_id": "supports-color@3.1.2", "_inCache": true, "_location": "/supports-color", "_phantomChildren": {}, "_requested": { "name": "supports-color", "raw": "supports-color@https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "rawSpec": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "scope": null, "spec": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "type": "remote" }, "_requiredBy": [ "/autoprefixer/postcss", "/postcss", "/postcss-colormin/postcss", "/postcss-discard-unused/postcss", "/postcss-minify-gradients/postcss", "/postcss-minify-selectors/postcss", "/webpack" ], "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "_shasum": "72a262894d9d408b956ca05ff37b2ed8a6e2a2d5", "_shrinkwrap": null, "_spec": "supports-color@https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "sindresorhus.com" }, "browser": "browser.js", "bugs": { "url": "https://github.com/chalk/supports-color/issues" }, "dependencies": { "has-flag": "^1.0.0" }, "description": "Detect whether a terminal supports color", "devDependencies": { "mocha": "*", "require-uncached": "^1.0.2", "xo": "*" }, "engines": { "node": ">=0.8.0" }, "files": [ "browser.js", "index.js" ], "homepage": "https://github.com/chalk/supports-color#readme", "keywords": [ "16m", "256", "ansi", "capability", "cli", "color", "colors", "colour", "command-line", "console", "detect", "million", "rgb", "shell", "styles", "support", "supports", "terminal", "truecolor", "tty", "xterm" ], "license": "MIT", "maintainers": [ { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, { "name": "Joshua Appelman", "email": "jappelman@xebia.com", "url": "jbnicolai.com" }, { "name": "JD Ballard", "email": "i.am.qix@gmail.com", "url": "github.com/qix-" } ], "name": "supports-color", "optionalDependencies": {}, "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\nif (supportsColor.has256) {\n\tconsole.log('Terminal supports 256 colors');\n}\n\nif (supportsColor.has16m) {\n\tconsole.log('Terminal supports 16 million colors (truecolor)');\n}\n```\n\n\n## API\n\nReturns an `object`, or `false` if color is not supported.\n\nThe returned object specifies a level of support for color through a `.level` property and a corresponding flag:\n\n- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors)\n- `.level = 2` and `.has256 = true`: 256 color support\n- `.level = 3` and `.has16m = true`: 16 million (truecolor) support\n\n\n## Info\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\nExplicit 256/truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.\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", "repository": { "type": "git", "url": "git+https://github.com/chalk/supports-color.git" }, "scripts": { "test": "xo && mocha", "travis": "mocha" }, "version": "3.1.2", "xo": { "envs": [ "mocha", "node" ] } }