GT2/GT2-Android/node_modules/pac-resolver/package.json

103 lines
5.8 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "pac-resolver@^3.0.0",
"scope": null,
"escapedName": "pac-resolver",
"name": "pac-resolver",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/pac-proxy-agent"
]
],
"_from": "pac-resolver@>=3.0.0 <4.0.0",
"_id": "pac-resolver@3.0.0",
"_inCache": true,
"_location": "/pac-resolver",
"_nodeVersion": "8.0.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/pac-resolver-3.0.0.tgz_1497379495716_0.4557954950723797"
},
"_npmUser": {
"name": "tootallnate",
"email": "nathan@tootallnate.net"
},
"_npmVersion": "5.0.0",
"_phantomChildren": {},
"_requested": {
"raw": "pac-resolver@^3.0.0",
"scope": null,
"escapedName": "pac-resolver",
"name": "pac-resolver",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/pac-proxy-agent"
],
"_resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-3.0.0.tgz",
"_shasum": "6aea30787db0a891704deb7800a722a7615a6f26",
"_shrinkwrap": null,
"_spec": "pac-resolver@^3.0.0",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/pac-proxy-agent",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
"url": "http://n8.io/"
},
"bugs": {
"url": "https://github.com/TooTallNate/node-pac-resolver/issues"
},
"dependencies": {
"co": "^4.6.0",
"degenerator": "^1.0.4",
"ip": "^1.1.5",
"netmask": "^1.0.6",
"thunkify": "^2.1.2"
},
"description": "Generates an asynchronous resolver function from a PAC file",
"devDependencies": {
"mocha": "^3.4.2"
},
"directories": {},
"dist": {
"integrity": "sha512-tcc38bsjuE3XZ5+4vP96OfhOugrX+JcnpUbhfuc4LuXBLQhoTthOstZeoQJBDnQUDYzYmdImKsbz0xSl1/9qeA==",
"shasum": "6aea30787db0a891704deb7800a722a7615a6f26",
"tarball": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-3.0.0.tgz"
},
"gitHead": "e352de32eb2062a316a7b5644e02ff8029a6c48e",
"homepage": "https://github.com/TooTallNate/node-pac-resolver#readme",
"keywords": [
"pac",
"file",
"proxy",
"resolve",
"dns"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
}
],
"name": "pac-resolver",
"optionalDependencies": {},
"readme": "pac-resolver\n============\n### Generates an asynchronous resolver function from a [PAC file][pac-wikipedia]\n[![Build Status](https://travis-ci.org/TooTallNate/node-pac-resolver.svg?branch=master)](https://travis-ci.org/TooTallNate/node-pac-resolver)\n\n\nThis module accepts a JavaScript String of code, which is meant to be a\n[PAC proxy file][pac-wikipedia], and returns a generated asynchronous\n`FindProxyForURL()` function.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install pac-resolver\n```\n\n\nExample\n-------\n\nGiven the PAC proxy file named `proxy.pac`:\n\n``` js\nfunction FindProxyForURL(url, host) {\n if (isInNet(myIpAddress(), \"10.1.10.0\", \"255.255.255.0\")) {\n return \"PROXY 1.2.3.4:8080\";\n } else {\n return \"DIRECT\";\n }\n}\n```\n\nYou can consume this PAC file with `pac-resolver` like so:\n\n``` js\nvar fs = require('fs');\nvar pac = require('pac-resolver');\n\nvar FindProxyForURL = pac(fs.readFileSync('proxy.pac'));\n\nFindProxyForURL('http://foo.com/').then((res) => {\n console.log(res);\n // \"DIRECT\"\n});\n```\n\n\nAPI\n---\n\n### pac(String jsStr[, Object options]) → Function\n\nReturns an asynchronous `FindProxyForURL()` function based off of the given JS\nstring `jsStr` PAC proxy file. An optional `options` object may be passed in which\nrespects the following options:\n\n * `filename` - String - the filename to use in error stack traces. Defaults to `proxy.pac`.\n * `sandbox` - Object - a map of functions to include in the sandbox of the\n JavaScript environment where the JS code will be executed. i.e. if you wanted to\n include the common `alert` function you could pass `alert: console.log`. For\n async functions, you must set the `async = true` property on the function\n instance, and the JS code will be able to invoke the function as if it were\n synchronous.\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[pac-file-docs]: https://web.archive.org/web/20070602031929/http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html\n[pac-wikipedia]: http://wikipedia.org/wiki/Proxy_auto-config\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/node-pac-resolver.git"
},
"scripts": {
"test": "mocha --reporter spec"
},
"version": "3.0.0"
}