@zkochan/pnpm
Version:
Fast, disk space efficient package manager
114 lines (113 loc) • 4.16 kB
JSON
{
"_args": [
[
{
"raw": "x256@0.0.2",
"scope": null,
"escapedName": "x256",
"name": "x256",
"rawSpec": "0.0.2",
"spec": "0.0.2",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/overlap/node_modules/couleurs"
]
],
"_from": "x256@0.0.2",
"_id": "x256@0.0.2",
"_inCache": true,
"_location": "/x256",
"_npmUser": {
"name": "substack",
"email": "mail@substack.net"
},
"_npmVersion": "1.4.15",
"_phantomChildren": {},
"_requested": {
"raw": "x256@0.0.2",
"scope": null,
"escapedName": "x256",
"name": "x256",
"rawSpec": "0.0.2",
"spec": "0.0.2",
"type": "version"
},
"_requiredBy": [
"/overlap/couleurs"
],
"_resolved": "https://registry.npmjs.org/x256/-/x256-0.0.2.tgz",
"_shasum": "c9af18876f7a175801d564fe70ad9e8317784934",
"_shrinkwrap": null,
"_spec": "x256@0.0.2",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/overlap/node_modules/couleurs",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bugs": {
"url": "https://github.com/substack/node-x256/issues"
},
"dependencies": {},
"description": "find the nearest xterm 256 color index for an rgb",
"devDependencies": {
"tape": "^2.13.3"
},
"directories": {
"test": "test"
},
"dist": {
"shasum": "c9af18876f7a175801d564fe70ad9e8317784934",
"tarball": "https://registry.npmjs.org/x256/-/x256-0.0.2.tgz"
},
"engines": {
"node": ">=0.4.0"
},
"gitHead": "ac236ad1384fde24f5d8cda6c4649e9bd5a72ada",
"homepage": "https://github.com/substack/node-x256#readme",
"keywords": [
"256",
"terminal",
"colors",
"xterm",
"ansi"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "substack",
"email": "mail@substack.net"
}
],
"name": "x256",
"optionalDependencies": {},
"readme": "# x256\n\nreturn the nearest\n[xterm 256 color code](http://www.frexx.de/xterm-256-notes/)\nfor rgb inputs.\n\n[](https://ci.testling.com/substack/node-x256)\n\n[](http://travis-ci.org/substack/node-x256)\n\n# example\n\nYou can just print the index:\n\n``` js\nvar x256 = require('x256');\nvar ix = x256(220,40,150);\nconsole.log(ix);\n```\n\noutput:\n\n```\n162\n```\n\nor you can use raw ansi escape codes:\n\n``` js\nvar x256 = require('x256');\nvar ix = x256(220,40,150);\nconsole.log('\\x1b[38;5;' + ix + 'mBEEEEEP');\n```\n\noutput:\n\n\n\nor you can use [charm](https://github.com/substack/node-charm):\n\n``` js\nvar x256 = require('x256');\nvar charm = require('charm')(process.stdout);\n\nvar ix = x256(220,40,150);\ncharm.foreground(ix).write('beep boop');\n```\n\noutput:\n\n\n\n# methods\n\n```\nvar x256 = require('x256')\n```\n\n## x256(red, green, blue)\n\nReturn the nearest xterm 256 color code for the 24-bit `[red, green, blue]`\nvalues.\n\n`red`, `green`, and `blue` should each be integers from 0 through 255,\ninclusive.\n\n# attributes\n\n## x256.colors\n\narray of `[red,green,blue]` 24-bit color arrays indexed by xterm 256 color code\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install x256\n```\n\n# license\n\nMIT\n",
"readmeFilename": "readme.markdown",
"repository": {
"type": "git",
"url": "git://github.com/substack/node-x256.git"
},
"scripts": {
"test": "tape test/*.js"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/8..latest",
"firefox/15",
"firefox/latest",
"firefox/nightly",
"chrome/15",
"chrome/latest",
"chrome/canary",
"opera/12..latest",
"opera/next",
"safari/5.1..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2..latest"
]
},
"version": "0.0.2"
}