yunlongzha_try_nodejs
Version:
try it
1 lines • 25.9 kB
JSON
{"_id":"proxy-addr","_rev":"35-9e9e360aec2340eaa7a4ae40d5d830a9","name":"proxy-addr","description":"Determine address of proxied request","dist-tags":{"latest":"1.0.10"},"versions":{"0.0.0":{"name":"proxy-addr","description":"Determine address of proxied request","version":"0.0.0","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/expressjs/proxy-ip.git"},"bugs":{"url":"https://github.com/expressjs/proxy-ip/issues"},"dependencies":{"ip":"0.3.0"},"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec test/"},"homepage":"https://github.com/expressjs/proxy-ip","_id":"proxy-addr@0.0.0","dist":{"shasum":"37ab96289d7a98de73b9e485141638c9c9971c49","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"}],"directories":{}},"0.0.1":{"name":"proxy-addr","description":"Determine address of proxied request","version":"0.0.1","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/expressjs/proxy-ip.git"},"bugs":{"url":"https://github.com/expressjs/proxy-ip/issues"},"dependencies":{},"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec test/"},"homepage":"https://github.com/expressjs/proxy-ip","_id":"proxy-addr@0.0.1","dist":{"shasum":"452212b85e83fbca3d5ad80c7316620a3bd36cc3","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"1.0.0":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.0","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/expressjs/proxy-ip.git"},"bugs":{"url":"https://github.com/expressjs/proxy-ip/issues"},"dependencies":{"ipaddr.js":"0.1.2"},"devDependencies":{"mocha":"~1.18.2","should":"~3.3.1"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec test/"},"homepage":"https://github.com/expressjs/proxy-ip","_id":"proxy-addr@1.0.0","dist":{"shasum":"478617ab0fba70e0c3dae9cf57469e36dd2febaf","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{}},"1.0.1":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.1","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/expressjs/proxy-addr.git"},"bugs":{"url":"https://github.com/expressjs/proxy-addr/issues"},"dependencies":{"ipaddr.js":"0.1.2"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.2.10","mocha":"~1.20.0","should":"~4.0.0"},"engines":{"node":">= 0.8.0"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter dot test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"},"homepage":"https://github.com/expressjs/proxy-addr","_id":"proxy-addr@1.0.1","dist":{"shasum":"c7c566d5eb4e3fad67eeb9c77c5558ccc39b88a8","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"directories":{}},"1.0.2":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.2","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"ipaddr.js":"0.1.3"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.2","mocha":"~1.21.4","should":"~4.0.0"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"63a0f679bd4b074b7391fa464cb779275f24b1da","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.2","_shasum":"b322f905aa4f4bd3ce60550295eabbbb07c92143","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"b322f905aa4f4bd3ce60550295eabbbb07c92143","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.2.tgz"},"directories":{}},"1.0.3":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.3","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"0.1.3"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.2","mocha":"~1.21.4","should":"~4.0.0"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"0a9006a64de938d879f1e4b38b275c1c46524dfd","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.3","_shasum":"17d824aac844707441249da6d1ea5e889007cdd6","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"17d824aac844707441249da6d1ea5e889007cdd6","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.3.tgz"},"directories":{}},"1.0.4":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.4","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"0.1.5"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.2","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"f72c40adfeeb81fa905f017030d2ecd1cd4d1821","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.4","_shasum":"51dbebbb22cc0eb04b77a76d871b75970f198cdd","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"51dbebbb22cc0eb04b77a76d871b75970f198cdd","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.4.tgz"},"directories":{}},"1.0.5":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.5","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"0.1.6"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.5","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"dd768c48b99fb65b2b753269b8eea675e86da3fd","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.5","_shasum":"17ad518b637a21a64746319f39fbc72c8628f63b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"17ad518b637a21a64746319f39fbc72c8628f63b","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.5.tgz"},"directories":{}},"1.0.6":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.6","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"0.1.8"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.5","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"550cade433f7a7d7cbcdebbd0f9e1cb94aed5e26","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.6","_shasum":"fce3a4c486bf2e188ad1e76e18399a79d02c0e72","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"fce3a4c486bf2e188ad1e76e18399a79d02c0e72","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.6.tgz"},"directories":{}},"1.0.7":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.7","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"0.1.9"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.8","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"917fa69ae1a4c3e2962d89461b6945538b763b28","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.7","_shasum":"6e2655aa9c56b014f09734a7e6d558cc77751939","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"shtylman","email":"shtylman@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"}],"dist":{"shasum":"6e2655aa9c56b014f09734a7e6d558cc77751939","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.7.tgz"},"directories":{}},"1.0.8":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.8","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"1.0.1"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.3.9","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"b32d9bda51c92f67a5c2c7b4f81971dbef41783c","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.8","_shasum":"db54ec878bcc1053d57646609219b3715678bafe","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"dist":{"shasum":"db54ec878bcc1053d57646609219b3715678bafe","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.8.tgz"},"directories":{}},"1.0.9":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.9","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"1.0.4"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.4.1","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"3941f1bbfb34b746b0dc01d8563c56b2a3464789","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.9","_shasum":"8ac877a230f80f10bf9e5bf42584cde87bd219a6","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"dist":{"shasum":"8ac877a230f80f10bf9e5bf42584cde87bd219a6","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.9.tgz"},"directories":{}},"1.0.10":{"name":"proxy-addr","description":"Determine address of proxied request","version":"1.0.10","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"dependencies":{"forwarded":"~0.1.0","ipaddr.js":"1.0.5"},"devDependencies":{"benchmark":"1.0.0","beautify-benchmark":"0.2.4","istanbul":"0.4.1","mocha":"~1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"0cdb6444100a7930285ed2555d0c3c687690a7a5","bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"homepage":"https://github.com/jshttp/proxy-addr","_id":"proxy-addr@1.0.10","_shasum":"0d40a82f801fc355567d2ecb65efe3f077f121c5","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"dist":{"shasum":"0d40a82f801fc355567d2ecb65efe3f077f121c5","tarball":"http://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.10.tgz"},"directories":{}}},"readme":"# proxy-addr\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nDetermine address of proxied request\n\n## Install\n\n```sh\n$ npm install proxy-addr\n```\n\n## API\n\n```js\nvar proxyaddr = require('proxy-addr')\n```\n\n### proxyaddr(req, trust)\n\nReturn the address of the request, using the given `trust` parameter.\n\nThe `trust` argument is a function that returns `true` if you trust\nthe address, `false` if you don't. The closest untrusted address is\nreturned.\n\n```js\nproxyaddr(req, function(addr){ return addr === '127.0.0.1' })\nproxyaddr(req, function(addr, i){ return i < 1 })\n```\n\nThe `trust` arugment may also be a single IP address string or an\narray of trusted addresses, as plain IP addresses, CIDR-formatted\nstrings, or IP/netmask strings.\n\n```js\nproxyaddr(req, '127.0.0.1')\nproxyaddr(req, ['127.0.0.0/8', '10.0.0.0/8'])\nproxyaddr(req, ['127.0.0.0/255.0.0.0', '192.168.0.0/255.255.0.0'])\n```\n\nThis module also supports IPv6. Your IPv6 addresses will be normalized\nautomatically (i.e. `fe80::00ed:1` equals `fe80:0:0:0:0:0:ed:1`).\n\n```js\nproxyaddr(req, '::1')\nproxyaddr(req, ['::1/128', 'fe80::/10'])\nproxyaddr(req, ['fe80::/ffc0::'])\n```\n\nThis module will automatically work with IPv4-mapped IPv6 addresses\nas well to support node.js in IPv6-only mode. This means that you do\nnot have to specify both `::ffff:a00:1` and `10.0.0.1`.\n\nAs a convenience, this module also takes certain pre-defined names\nin addition to IP addresses, which expand into IP addresses:\n\n```js\nproxyaddr(req, 'loopback')\nproxyaddr(req, ['loopback', 'fc00:ac:1ab5:fff::1/64'])\n```\n\n * `loopback`: IPv4 and IPv6 loopback addresses (like `::1` and\n `127.0.0.1`).\n * `linklocal`: IPv4 and IPv6 link-local addresses (like\n `fe80::1:1:1:1` and `169.254.0.1`).\n * `uniquelocal`: IPv4 private addresses and IPv6 unique-local\n addresses (like `fc00:ac:1ab5:fff::1` and `192.168.0.1`).\n\nWhen `trust` is specified as a function, it will be called for each\naddress to determine if it is a trusted address. The function is\ngiven two arguments: `addr` and `i`, where `addr` is a string of\nthe address to check and `i` is a number that represents the distance\nfrom the socket address.\n\n### proxyaddr.all(req, [trust])\n\nReturn all the addresses of the request, optionally stopping at the\nfirst untrusted. This array is ordered from closest to furthest\n(i.e. `arr[0] === req.connection.remoteAddress`).\n\n```js\nproxyaddr.all(req)\n```\n\nThe optional `trust` argument takes the same arguments as `trust`\ndoes in `proxyaddr(req, trust)`.\n\n```js\nproxyaddr.all(req, 'loopback')\n```\n\n### proxyaddr.compile(val)\n\nCompiles argument `val` into a `trust` function. This function takes\nthe same arguments as `trust` does in `proxyaddr(req, trust)` and\nreturns a function suitable for `proxyaddr(req, trust)`.\n\n```js\nvar trust = proxyaddr.compile('localhost')\nvar addr = proxyaddr(req, trust)\n```\n\nThis function is meant to be optimized for use against every request.\nIt is recommend to compile a trust function up-front for the trusted\nconfiguration and pass that to `proxyaddr(req, trust)` for each request.\n\n## Testing\n\n```sh\n$ npm test\n```\n\n## Benchmarks\n\n```sh\n$ npm run-script bench\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/proxy-addr.svg\n[npm-url]: https://npmjs.org/package/proxy-addr\n[node-version-image]: https://img.shields.io/node/v/proxy-addr.svg\n[node-version-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/jshttp/proxy-addr/master.svg\n[travis-url]: https://travis-ci.org/jshttp/proxy-addr\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/proxy-addr/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/proxy-addr?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/proxy-addr.svg\n[downloads-url]: https://npmjs.org/package/proxy-addr\n","maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"mscdex","email":"mscdex@mscdex.net"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"defunctzombie","email":"shtylman@gmail.com"}],"time":{"modified":"2015-12-10T03:27:48.082Z","created":"2014-05-05T02:38:49.512Z","0.0.0":"2014-05-05T02:38:49.512Z","0.0.1":"2014-05-05T02:44:46.419Z","1.0.0":"2014-05-08T14:52:39.430Z","1.0.1":"2014-06-03T14:49:59.893Z","1.0.2":"2014-09-18T17:32:14.933Z","1.0.3":"2014-09-21T19:40:43.122Z","1.0.4":"2014-11-23T20:35:27.606Z","1.0.5":"2015-01-09T03:16:54.215Z","1.0.6":"2015-02-01T19:54:32.976Z","1.0.7":"2015-03-17T04:47:05.972Z","1.0.8":"2015-05-11T02:56:29.699Z","1.0.9":"2015-12-01T20:55:36.227Z","1.0.10":"2015-12-10T03:27:48.082Z"},"homepage":"https://github.com/jshttp/proxy-addr","keywords":["ip","proxy","x-forwarded-for"],"repository":{"type":"git","url":"https://github.com/jshttp/proxy-addr"},"author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"bugs":{"url":"https://github.com/jshttp/proxy-addr/issues"},"license":"MIT","readmeFilename":"README.md","users":{"nathantu":true,"robermac":true,"markthethomas":true,"simplyianm":true,"nex":true},"_attachments":{},"_etag":"\"9K80Y80RUXRE89F9QNZD77762\""}