116 lines
4.7 KiB
JSON
116 lines
4.7 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "forwarded@~0.1.2",
|
|
"scope": null,
|
|
"escapedName": "forwarded",
|
|
"name": "forwarded",
|
|
"rawSpec": "~0.1.2",
|
|
"spec": ">=0.1.2 <0.2.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/proxy-addr"
|
|
]
|
|
],
|
|
"_from": "forwarded@>=0.1.2 <0.2.0",
|
|
"_id": "forwarded@0.1.2",
|
|
"_inCache": true,
|
|
"_location": "/forwarded",
|
|
"_nodeVersion": "6.11.1",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/forwarded-0.1.2.tgz_1505441873168_0.0936233215034008"
|
|
},
|
|
"_npmUser": {
|
|
"name": "dougwilson",
|
|
"email": "doug@somethingdoug.com"
|
|
},
|
|
"_npmVersion": "3.10.10",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "forwarded@~0.1.2",
|
|
"scope": null,
|
|
"escapedName": "forwarded",
|
|
"name": "forwarded",
|
|
"rawSpec": "~0.1.2",
|
|
"spec": ">=0.1.2 <0.2.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/proxy-addr"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
|
|
"_shasum": "98c23dab1175657b8c0573e8ceccd91b0ff18c84",
|
|
"_shrinkwrap": null,
|
|
"_spec": "forwarded@~0.1.2",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/proxy-addr",
|
|
"bugs": {
|
|
"url": "https://github.com/jshttp/forwarded/issues"
|
|
},
|
|
"contributors": [
|
|
{
|
|
"name": "Douglas Christopher Wilson",
|
|
"email": "doug@somethingdoug.com"
|
|
}
|
|
],
|
|
"dependencies": {},
|
|
"description": "Parse HTTP X-Forwarded-For header",
|
|
"devDependencies": {
|
|
"beautify-benchmark": "0.2.4",
|
|
"benchmark": "2.1.4",
|
|
"eslint": "3.19.0",
|
|
"eslint-config-standard": "10.2.1",
|
|
"eslint-plugin-import": "2.7.0",
|
|
"eslint-plugin-node": "5.1.1",
|
|
"eslint-plugin-promise": "3.5.0",
|
|
"eslint-plugin-standard": "3.0.1",
|
|
"istanbul": "0.4.5",
|
|
"mocha": "1.21.5"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "98c23dab1175657b8c0573e8ceccd91b0ff18c84",
|
|
"tarball": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">= 0.6"
|
|
},
|
|
"files": [
|
|
"LICENSE",
|
|
"HISTORY.md",
|
|
"README.md",
|
|
"index.js"
|
|
],
|
|
"gitHead": "2fc094b49781b62acb0e2b00f83abd641d604a7c",
|
|
"homepage": "https://github.com/jshttp/forwarded#readme",
|
|
"keywords": [
|
|
"x-forwarded-for",
|
|
"http",
|
|
"req"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "dougwilson",
|
|
"email": "doug@somethingdoug.com"
|
|
}
|
|
],
|
|
"name": "forwarded",
|
|
"optionalDependencies": {},
|
|
"readme": "# forwarded\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\nParse HTTP X-Forwarded-For header\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install forwarded\n```\n\n## API\n\n```js\nvar forwarded = require('forwarded')\n```\n\n### forwarded(req)\n\n```js\nvar addresses = forwarded(req)\n```\n\nParse the `X-Forwarded-For` header from the request. Returns an array\nof the addresses, including the socket address for the `req`, in reverse\norder (i.e. index `0` is the socket address and the last index is the\nfurthest address, typically the end-user).\n\n## Testing\n\n```sh\n$ npm test\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/forwarded.svg\n[npm-url]: https://npmjs.org/package/forwarded\n[node-version-image]: https://img.shields.io/node/v/forwarded.svg\n[node-version-url]: https://nodejs.org/en/download/\n[travis-image]: https://img.shields.io/travis/jshttp/forwarded/master.svg\n[travis-url]: https://travis-ci.org/jshttp/forwarded\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/forwarded.svg\n[downloads-url]: https://npmjs.org/package/forwarded\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jshttp/forwarded.git"
|
|
},
|
|
"scripts": {
|
|
"bench": "node benchmark/index.js",
|
|
"lint": "eslint .",
|
|
"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/"
|
|
},
|
|
"version": "0.1.2"
|
|
}
|