@zkochan/pnpm
Version:
Fast, disk space efficient package manager
127 lines (126 loc) • 6.84 kB
JSON
{
"_args": [
[
{
"raw": "color-convert@^1.9.0",
"scope": null,
"escapedName": "color-convert",
"name": "color-convert",
"rawSpec": "^1.9.0",
"spec": ">=1.9.0 <2.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/ansi-styles"
]
],
"_from": "color-convert@>=1.9.0 <2.0.0",
"_id": "color-convert@1.9.3",
"_inCache": true,
"_location": "/color-convert",
"_nodeVersion": "9.6.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/color-convert_1.9.3_1535434358933_0.039520734999560325"
},
"_npmUser": {
"name": "qix",
"email": "i.am.qix@gmail.com"
},
"_npmVersion": "6.1.0",
"_phantomChildren": {},
"_requested": {
"raw": "color-convert@^1.9.0",
"scope": null,
"escapedName": "color-convert",
"name": "color-convert",
"rawSpec": "^1.9.0",
"spec": ">=1.9.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/ansi-styles",
"/couleurs"
],
"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
"_shasum": "bb71850690e1f136567de629d2d5471deda4c1e8",
"_shrinkwrap": null,
"_spec": "color-convert@^1.9.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/ansi-styles",
"author": {
"name": "Heather Arthur",
"email": "fayearthur@gmail.com"
},
"bugs": {
"url": "https://github.com/Qix-/color-convert/issues"
},
"dependencies": {
"color-name": "1.1.3"
},
"description": "Plain color conversion functions",
"devDependencies": {
"chalk": "1.1.1",
"xo": "0.11.2"
},
"directories": {},
"dist": {
"integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
"shasum": "bb71850690e1f136567de629d2d5471deda4c1e8",
"tarball": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
"fileCount": 7,
"unpackedSize": 26964,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhN53CRA9TVsSAnZWagAAM64QAKN/CRQ/i6v2JtWVkAob\ntboJSXsnqa/T2ozTyI5UngXYdqk+33XF1EOeTCQ4Heay0zYk8MtMDk8GCIO0\naKHGzhgC5lKYXYJ+6AE/0C/047LdgTUqEbYriwTkYTa1FyozgLMghdkBLklF\nADEZ3elhqjuCJNhe/CIHfAVBrNt/b7t8O6zhQY/n53wA6tU9N6gJq2R5njML\n/bKF5JxEX6RITFxC5jqUQecyDf1uYt0B/0IJQEylsdN8JqNrL6IzrXjLI2Xp\n37zH5P17Adl2yqIuwIoqmjDxuTFcAjA02WNPj4D0h88h7C5kmVvS5x3FC+D4\nYVZAwIKCqeFtYOtTMvoLhXd3Zgc7OSEg+KLi9UR9CxQrP42/28Bi0guZGCua\nOj/Tr660U4+sKr5Y9tRdpE8J55pm/wELPntR9TwVj8qnq8+C9efo8hDxMGT9\nJ+GWrrGAtEHP0ffs4W3O/yn5QfWXUmyIueNg7CjFgYG2pgMwSKOVgKsVc+iQ\nP6/bDsk3exESageTtRxA3gIK279QIRtqY+4M2HV7lcL3l9nPhiD841o2mep4\nVIcNiR3SD3MeAr5DBZqJKNd1qxDLRAAnCTNLfrQBx5hHtXgm9wDKrZNTdOxF\npUvIxhDTbkKIAmfSAI4fpZxwsSP10PRMHdtRRmDahZU9Uyj5qY+KEDhOnotq\nKF7e\r\n=S0I7\r\n-----END PGP SIGNATURE-----\r\n"
},
"files": [
"index.js",
"conversions.js",
"css-keywords.js",
"route.js"
],
"gitHead": "99dc5da127d3d17d0ff8d13a995fd2d6aab404aa",
"homepage": "https://github.com/Qix-/color-convert#readme",
"keywords": [
"color",
"colour",
"convert",
"converter",
"conversion",
"rgb",
"hsl",
"hsv",
"hwb",
"cmyk",
"ansi",
"ansi16"
],
"license": "MIT",
"maintainers": [
{
"name": "moox",
"email": "m@moox.io"
},
{
"name": "qix",
"email": "i.am.qix@gmail.com"
}
],
"name": "color-convert",
"optionalDependencies": {},
"readme": "# color-convert\n\n[](https://travis-ci.org/Qix-/color-convert)\n\nColor-convert is a color conversion library for JavaScript and node.\nIt converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, `ansi`, `ansi16`, `hex` strings, and CSS `keyword`s (will round to closest):\n\n```js\nvar convert = require('color-convert');\n\nconvert.rgb.hsl(140, 200, 100); // [96, 48, 59]\nconvert.keyword.rgb('blue'); // [0, 0, 255]\n\nvar rgbChannels = convert.rgb.channels; // 3\nvar cmykChannels = convert.cmyk.channels; // 4\nvar ansiChannels = convert.ansi16.channels; // 1\n```\n\n# Install\n\n```console\n$ npm install color-convert\n```\n\n# API\n\nSimply get the property of the _from_ and _to_ conversion that you're looking for.\n\nAll functions have a rounded and unrounded variant. By default, return values are rounded. To get the unrounded (raw) results, simply tack on `.raw` to the function.\n\nAll 'from' functions have a hidden property called `.channels` that indicates the number of channels the function expects (not including alpha).\n\n```js\nvar convert = require('color-convert');\n\n// Hex to LAB\nconvert.hex.lab('DEADBF'); // [ 76, 21, -2 ]\nconvert.hex.lab.raw('DEADBF'); // [ 75.56213190997677, 20.653827952644754, -2.290532499330533 ]\n\n// RGB to CMYK\nconvert.rgb.cmyk(167, 255, 4); // [ 35, 0, 98, 0 ]\nconvert.rgb.cmyk.raw(167, 255, 4); // [ 34.509803921568626, 0, 98.43137254901961, 0 ]\n```\n\n### Arrays\nAll functions that accept multiple arguments also support passing an array.\n\nNote that this does **not** apply to functions that convert from a color that only requires one value (e.g. `keyword`, `ansi256`, `hex`, etc.)\n\n```js\nvar convert = require('color-convert');\n\nconvert.rgb.hex(123, 45, 67); // '7B2D43'\nconvert.rgb.hex([123, 45, 67]); // '7B2D43'\n```\n\n## Routing\n\nConversions that don't have an _explicitly_ defined conversion (in [conversions.js](conversions.js)), but can be converted by means of sub-conversions (e.g. XYZ -> **RGB** -> CMYK), are automatically routed together. This allows just about any color model supported by `color-convert` to be converted to any other model, so long as a sub-conversion path exists. This is also true for conversions requiring more than one step in between (e.g. LCH -> **LAB** -> **XYZ** -> **RGB** -> Hex).\n\nKeep in mind that extensive conversions _may_ result in a loss of precision, and exist only to be complete. For a list of \"direct\" (single-step) conversions, see [conversions.js](conversions.js).\n\n# Contribute\n\nIf there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request.\n\n# License\nCopyright © 2011-2016, Heather Arthur and Josh Junon. Licensed under the [MIT License](LICENSE).\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/Qix-/color-convert.git"
},
"scripts": {
"pretest": "xo",
"test": "node test/basic.js"
},
"version": "1.9.3",
"xo": {
"rules": {
"default-case": 0,
"no-inline-comments": 0,
"operator-linebreak": 0
}
}
}