105 lines
7.1 KiB
JSON
105 lines
7.1 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "socks-proxy-agent@^3.0.0",
|
|
"scope": null,
|
|
"escapedName": "socks-proxy-agent",
|
|
"name": "socks-proxy-agent",
|
|
"rawSpec": "^3.0.0",
|
|
"spec": ">=3.0.0 <4.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/proxy-agent"
|
|
]
|
|
],
|
|
"_from": "socks-proxy-agent@>=3.0.0 <4.0.0",
|
|
"_id": "socks-proxy-agent@3.0.1",
|
|
"_inCache": true,
|
|
"_location": "/socks-proxy-agent",
|
|
"_nodeVersion": "8.4.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "s3://npm-registry-packages",
|
|
"tmp": "tmp/socks-proxy-agent-3.0.1.tgz_1505751239688_0.4514315372798592"
|
|
},
|
|
"_npmUser": {
|
|
"name": "tootallnate",
|
|
"email": "nathan@tootallnate.net"
|
|
},
|
|
"_npmVersion": "5.3.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "socks-proxy-agent@^3.0.0",
|
|
"scope": null,
|
|
"escapedName": "socks-proxy-agent",
|
|
"name": "socks-proxy-agent",
|
|
"rawSpec": "^3.0.0",
|
|
"spec": ">=3.0.0 <4.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/pac-proxy-agent",
|
|
"/proxy-agent"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-3.0.1.tgz",
|
|
"_shasum": "2eae7cf8e2a82d34565761539a7f9718c5617659",
|
|
"_shrinkwrap": null,
|
|
"_spec": "socks-proxy-agent@^3.0.0",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/proxy-agent",
|
|
"author": {
|
|
"name": "Nathan Rajlich",
|
|
"email": "nathan@tootallnate.net",
|
|
"url": "http://n8.io/"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/TooTallNate/node-socks-proxy-agent/issues"
|
|
},
|
|
"dependencies": {
|
|
"agent-base": "^4.1.0",
|
|
"socks": "^1.1.10"
|
|
},
|
|
"description": "A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS",
|
|
"devDependencies": {
|
|
"mocha": "^3.4.2",
|
|
"raw-body": "^2.2.0",
|
|
"socksv5": "0.0.6"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"integrity": "sha512-ZwEDymm204mTzvdqyUqOdovVr2YRd2NYskrYrF2LXyZ9qDiMAoFESGK8CRphiO7rtbo2Y757k2Nia3x2hGtalA==",
|
|
"shasum": "2eae7cf8e2a82d34565761539a7f9718c5617659",
|
|
"tarball": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-3.0.1.tgz"
|
|
},
|
|
"gitHead": "25af8c88859418725a78865a31b73d0cf82f1696",
|
|
"homepage": "https://github.com/TooTallNate/node-socks-proxy-agent#readme",
|
|
"keywords": [
|
|
"socks",
|
|
"socks4",
|
|
"socks4a",
|
|
"proxy",
|
|
"http",
|
|
"https",
|
|
"agent"
|
|
],
|
|
"license": "MIT",
|
|
"main": "./index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "tootallnate",
|
|
"email": "nathan@tootallnate.net"
|
|
}
|
|
],
|
|
"name": "socks-proxy-agent",
|
|
"optionalDependencies": {},
|
|
"readme": "socks-proxy-agent\n================\n### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS\n[![Build Status](https://travis-ci.org/TooTallNate/node-socks-proxy-agent.svg?branch=master)](https://travis-ci.org/TooTallNate/node-socks-proxy-agent)\n\nThis module provides an `http.Agent` implementation that connects to a\nspecified SOCKS proxy server, and can be used with the built-in `http`\nor `https` modules.\n\nIt can also be used in conjunction with the `ws` module to establish a WebSocket\nconnection over a SOCKS proxy. See the \"Examples\" section below.\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install socks-proxy-agent\n```\n\n\nExamples\n--------\n\n#### `http` module example\n\n``` js\nvar url = require('url');\nvar http = require('http');\nvar SocksProxyAgent = require('socks-proxy-agent');\n\n// SOCKS proxy to connect to\nvar proxy = process.env.socks_proxy || 'socks://127.0.0.1:9050';\nconsole.log('using proxy server %j', proxy);\n\n// HTTP endpoint for the proxy to connect to\nvar endpoint = process.argv[2] || 'http://nodejs.org/api/';\nconsole.log('attempting to GET %j', endpoint);\nvar opts = url.parse(endpoint);\n\n// create an instance of the `SocksProxyAgent` class with the proxy server information\nvar agent = new SocksProxyAgent(proxy);\nopts.agent = agent;\n\nhttp.get(opts, function (res) {\n console.log('\"response\" event!', res.headers);\n res.pipe(process.stdout);\n});\n```\n\n#### `https` module example\n\n``` js\nvar url = require('url');\nvar https = require('https');\nvar SocksProxyAgent = require('socks-proxy-agent');\n\n// SOCKS proxy to connect to\nvar proxy = process.env.socks_proxy || 'socks://127.0.0.1:9050';\nconsole.log('using proxy server %j', proxy);\n\n// HTTP endpoint for the proxy to connect to\nvar endpoint = process.argv[2] || 'https://encrypted.google.com/';\nconsole.log('attempting to GET %j', endpoint);\nvar opts = url.parse(endpoint);\n\n// create an instance of the `SocksProxyAgent` class with the proxy server information\n// NOTE: the `true` second argument! Means to use TLS encryption on the socket\nvar agent = new SocksProxyAgent(proxy, true);\nopts.agent = agent;\n\nhttps.get(opts, function (res) {\n console.log('\"response\" event!', res.headers);\n res.pipe(process.stdout);\n});\n```\n\n#### `ws` WebSocket connection example\n\n``` js\nvar WebSocket = require('ws');\nvar SocksProxyAgent = require('socks-proxy-agent');\n\n// SOCKS proxy to connect to\nvar proxy = process.env.socks_proxy || 'socks://127.0.0.1:9050';\nconsole.log('using proxy server %j', proxy);\n\n// WebSocket endpoint for the proxy to connect to\nvar endpoint = process.argv[2] || 'ws://echo.websocket.org';\nconsole.log('attempting to connect to WebSocket %j', endpoint);\n\n// create an instance of the `SocksProxyAgent` class with the proxy server information\nvar agent = new SocksProxyAgent(proxy);\n\n// initiate the WebSocket connection\nvar socket = new WebSocket(endpoint, { agent: agent });\n\nsocket.on('open', function () {\n console.log('\"open\" event!');\n socket.send('hello world');\n});\n\nsocket.on('message', function (data, flags) {\n console.log('\"message\" event! %j %j', data, flags);\n socket.close();\n});\n```\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>\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",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/TooTallNate/node-socks-proxy-agent.git"
|
|
},
|
|
"scripts": {
|
|
"test": "mocha --reporter spec"
|
|
},
|
|
"version": "3.0.1"
|
|
}
|