{"name":"socks5-https-client","description":"SOCKS v5 HTTPS client.","version":"1.2.1","main":"index.js","homepage":"https://github.com/mattcg/socks5-https-client","implements":["CommonJS/Modules/1.0"],"author":{"name":"Matthew Caruana Galizia","email":"mattcg@gmail.com"},"keywords":["socks5","socksv5","socks","v5","https","ssl","tls","tor","client"],"bugs":{"url":"https://github.com/mattcg/socks5-https-client/issues"},"repository":{"type":"git","url":"git+https://github.com/mattcg/socks5-https-client.git"},"dependencies":{"socks5-client":"~1.2.3"},"devDependencies":{"mocha":"~3.1.2","node-socks":"~0.1.0","request":"~2.72.0"},"scripts":{"test":"make test"},"engines":{"node":">= 6.4.0"},"license":"MIT","gitHead":"e63c70152d9fdb0170f4731a0c98513d59c5bdac","_id":"socks5-https-client@1.2.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}],"dist":{"integrity":"sha512-FbZ/X/2Xq3DAMhuRA4bnN0jy1QxaPTVPLFvyv6CEj0QDKSTdWp9yRxo1JhqXmWKhPQeJyUMajHJB2UjT43pFcw==","shasum":"c8d4a000e39cdc1651d90245af04a735d75d8b09","tarball":"http://registry-npm.ywwl.com/socks5-https-client/download/socks5-https-client-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEqCHnjeXFydjq/DM0myz7fDFyGYrR4nEjC7M8F8d8vjAiBEfT0wY7WnPSMaOt12oZ7ZJLd1U/NIqTf6sIT8qskEsw=="}],"size":3264,"noattachment":false,"key":"/socks5-https-client/-/socks5-https-client-1.2.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/socks5-https-client-1.2.1.tgz_1498040713090_0.10078874556347728"},"directories":{},"readme":"# SOCKS5 HTTPS Client #\n\n[![Build Status](https://travis-ci.org/mattcg/socks5-https-client.png?branch=master)](https://travis-ci.org/mattcg/socks5-https-client)\n\nSOCKS v5 HTTPS client implementation in JavaScript for Node.js.\n\n```js\nvar shttps = require('socks5-https-client');\n\nshttps.get({\n\thostname: 'encrypted.google.com',\n\tpath: '/',\n\trejectUnauthorized: true // This is the default.\n}, function(res) {\n\tres.setEncoding('utf8');\n\tres.on('readable', function() {\n\t\tconsole.log(res.read()); // Log response to console.\n\t});\n});\n```\n\nSpecify the `socksHost` and `socksPort` options if your SOCKS server isn't running on `localhost:1080`. Tor runs its SOCKS server on port `9050` by default, for example.\n\nUsername and password authentication is supported with the `socksUsername` and `socksPassword` options.\n\nYou may also pass a URL as the first argument to `get` or `request`, which will be parsed using `url.parse`.\n\n## Using with Tor ##\n\nWorks great for making HTTPS requests through [Tor](https://www.torproject.org/).\n\nMake sure a Tor server is running locally and run `node example/tor https://check.torproject.org/` to test.\n\n## Using with Request ##\n\nTo use with [Request](https://github.com/mikeal/request), just pass a reference to the `Agent` constructor..\n\n```js\nvar Agent = require('socks5-https-client/lib/Agent');\n\nrequest({\n\turl: 'https://encrypted.google.com/',\n\tstrictSSL: true,\n\tagentClass: Agent,\n\tagentOptions: {\n\t\tsocksHost: 'my-tor-proxy-host', // Defaults to 'localhost'.\n\t\tsocksPort: 9050 // Defaults to 1080.\n\t}\n}, function(err, res) {\n\tconsole.log(err || res.body);\n});\n```\n\n## HTTP ##\n\nThis client only provides support for making HTTPS requests. See [socks5-http-client](https://github.com/mattcg/socks5-http-client) for an HTTP implementation.\n\n## License ##\n\nCopyright © 2013 [Matthew Caruana Galizia](http://twitter.com/mcaruanagalizia), licensed under an [MIT license](http://mattcg.mit-license.org/).\n","publish_time":1498040714032,"_cnpm_publish_time":1498040714032,"dist-tags":{"latest":"1.2.1"}}