{"name":"socks5-https-client","description":"SOCKS v5 HTTPS client.","version":"0.1.1","main":"index.js","homepage":"https://github.com/mattcg/socks5-https-client","implements":["CommonJS/Modules/1.0"],"contributors":[{"name":"Matthew Caruana Galizia","email":"m@m.cg"}],"keywords":["socks5","socksv5","socks","v5","https","ssl","tls","tor","client"],"bugs":{"url":"https://github.com/mattcg/socks5-https-client/issues"},"repositories":[{"type":"git","url":"https://github.com/mattcg/socks5-https-client.git"}],"dependencies":{"socks5-client":"0.x","starttls":"0.x"},"engines":{"node":"0.x"},"licenses":[{"type":"Creative Commons Attribution 3.0 Unported (CC BY 3.0)","url":"http://creativecommons.org/licenses/by/3.0/legalcode"}],"_id":"socks5-https-client@0.1.1","dist":{"shasum":"6b8232ae18545d61b9141b90b444d2d0f0d4f80e","tarball":"http://registry-npm.ywwl.com/socks5-https-client/download/socks5-https-client-0.1.1.tgz","integrity":"sha512-njl8gOMo1G29CAuj2RCi5DrPTEtX8HyH6+AaWSfcgMJCRF4ezCI71dRptOUv7duTnhqvRtrTa0t7LerdTKX2kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBGnHT05yoTbwQfqkW61Iq7Qdyvmvl8FTK9mybiDiTLtAiAb5Q7k9whUZFfDogLh2pYIEm4wv6zvUTCM8tQ6KWUAHA=="}],"size":1726,"noattachment":false,"key":"/socks5-https-client/-/socks5-https-client-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}],"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":1362523485201,"_cnpm_publish_time":1362523485201,"dist-tags":{"latest":"1.2.1"}}