{
	"name": "x256",
	"versions": {
		"0.0.0": {
			"name": "x256",
			"description": "find the nearest xterm 256 color index for an rgb",
			"version": "0.0.0",
			"repository": {
				"type": "git",
				"url": "git://github.com/substack/node-x256.git"
			},
			"main": "index.js",
			"keywords": [
				"256",
				"terminal",
				"colors",
				"xterm",
				"ansi"
			],
			"directories": {
				"test": "test"
			},
			"scripts": {
				"test": "tap test/*.js"
			},
			"devDependencies": {
				"tap": "~0.2.4"
			},
			"engines": {
				"node": ">=0.4.0"
			},
			"license": "MIT",
			"author": {
				"name": "James Halliday",
				"email": "mail@substack.net",
				"url": "http://substack.net"
			},
			"_npmUser": {
				"name": "substack",
				"email": "mail@substack.net"
			},
			"_id": "x256@0.0.0",
			"dependencies": {},
			"optionalDependencies": {},
			"_engineSupported": true,
			"_npmVersion": "1.1.19",
			"_nodeVersion": "v0.6.11",
			"_defaultsLoaded": true,
			"dist": {
				"shasum": "10c2d700561d7d5a6a1623b9a69bf8112e998a16",
				"tarball": "https://registry.npmjs.org/x256/-/x256-0.0.0.tgz"
			},
			"maintainers": [
				{
					"name": "substack",
					"email": "mail@substack.net"
				}
			],
			"contributors": []
		},
		"0.0.1": {
			"name": "x256",
			"description": "find the nearest xterm 256 color index for an rgb",
			"version": "0.0.1",
			"repository": {
				"type": "git",
				"url": "git://github.com/substack/node-x256.git"
			},
			"main": "index.js",
			"keywords": [
				"256",
				"terminal",
				"colors",
				"xterm",
				"ansi"
			],
			"directories": {
				"test": "test"
			},
			"scripts": {
				"test": "tap test/*.js"
			},
			"devDependencies": {
				"tap": "~0.2.4"
			},
			"engines": {
				"node": ">=0.4.0"
			},
			"license": "MIT",
			"author": {
				"name": "James Halliday",
				"email": "mail@substack.net",
				"url": "http://substack.net"
			},
			"_npmUser": {
				"name": "substack",
				"email": "mail@substack.net"
			},
			"_id": "x256@0.0.1",
			"dependencies": {},
			"optionalDependencies": {},
			"_engineSupported": true,
			"_npmVersion": "1.1.19",
			"_nodeVersion": "v0.6.11",
			"_defaultsLoaded": true,
			"dist": {
				"shasum": "4acef33ddac82e62317b272dac36acbd7893365f",
				"tarball": "https://registry.npmjs.org/x256/-/x256-0.0.1.tgz"
			},
			"maintainers": [
				{
					"name": "substack",
					"email": "mail@substack.net"
				}
			],
			"contributors": []
		},
		"0.0.2": {
			"name": "x256",
			"description": "find the nearest xterm 256 color index for an rgb",
			"version": "0.0.2",
			"repository": {
				"type": "git",
				"url": "git://github.com/substack/node-x256.git"
			},
			"main": "index.js",
			"keywords": [
				"256",
				"terminal",
				"colors",
				"xterm",
				"ansi"
			],
			"directories": {
				"test": "test"
			},
			"scripts": {
				"test": "tape test/*.js"
			},
			"devDependencies": {
				"tape": "^2.13.3"
			},
			"engines": {
				"node": ">=0.4.0"
			},
			"license": "MIT",
			"author": {
				"name": "James Halliday",
				"email": "mail@substack.net",
				"url": "http://substack.net"
			},
			"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"
				]
			},
			"gitHead": "ac236ad1384fde24f5d8cda6c4649e9bd5a72ada",
			"bugs": {
				"url": "https://github.com/substack/node-x256/issues"
			},
			"homepage": "https://github.com/substack/node-x256",
			"_id": "x256@0.0.2",
			"_shasum": "c9af18876f7a175801d564fe70ad9e8317784934",
			"_from": ".",
			"_npmVersion": "1.4.15",
			"_npmUser": {
				"name": "substack",
				"email": "mail@substack.net"
			},
			"maintainers": [
				{
					"name": "substack",
					"email": "mail@substack.net"
				}
			],
			"dist": {
				"shasum": "c9af18876f7a175801d564fe70ad9e8317784934",
				"tarball": "https://registry.npmjs.org/x256/-/x256-0.0.2.tgz"
			},
			"contributors": []
		}
	},
	"time": {
		"modified": "2014-07-01T07:21:28.018Z",
		"created": "2012-05-06T11:35:44.716Z",
		"0.0.0": "2012-05-06T11:35:45.996Z",
		"0.0.1": "2012-05-06T13:40:00.394Z",
		"0.0.2": "2014-07-01T07:21:28.018Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "0.0.2"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"a8f32e4c1b2fe2ef22d95a153d8e23e3\"",
			"fetched": 1593324309390
		}
	},
	"_distfiles": {
		"x256-0.0.0.tgz": {
			"url": "https://registry.npmjs.org/x256/-/x256-0.0.0.tgz",
			"sha": "10c2d700561d7d5a6a1623b9a69bf8112e998a16",
			"registry": "npmjs"
		},
		"x256-0.0.1.tgz": {
			"url": "https://registry.npmjs.org/x256/-/x256-0.0.1.tgz",
			"sha": "4acef33ddac82e62317b272dac36acbd7893365f",
			"registry": "npmjs"
		},
		"x256-0.0.2.tgz": {
			"url": "https://registry.npmjs.org/x256/-/x256-0.0.2.tgz",
			"sha": "c9af18876f7a175801d564fe70ad9e8317784934",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"x256-0.0.2.tgz": {
			"shasum": "c9af18876f7a175801d564fe70ad9e8317784934"
		}
	},
	"_rev": "2-acf7a0420181b76b",
	"_id": "x256",
	"readme": "# x256\n\nreturn the nearest\n[xterm 256 color code](http://www.frexx.de/xterm-256-notes/)\nfor rgb inputs.\n\n[![testling badge](https://ci.testling.com/substack/node-x256.png)](https://ci.testling.com/substack/node-x256)\n\n[![build status](https://secure.travis-ci.org/substack/node-x256.png)](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![x256 raw beep](http://substack.net/images/screenshots/x256_raw_beep.png)\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![x256 charm beep boop](http://substack.net/images/screenshots/x256_charm_beep_boop.png)\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"
}