{"name":"socks5-https-client","description":"SOCKS v5 HTTPS client.","version":"1.1.0","main":"index.js","homepage":"https://github.com/mattcg/socks5-https-client","implements":["CommonJS/Modules/1.0"],"author":{"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"},"repository":{"type":"git","url":"git+https://github.com/mattcg/socks5-https-client.git"},"dependencies":{"socks5-client":"~1.1.0"},"devDependencies":{"mocha":"~2.1.0","node-socks":"~0.1.0"},"scripts":{"test":"make test"},"engines":{"node":">= 0.10.0"},"licenses":[{"type":"MIT","url":"http://mattcg.mit-license.org/"}],"gitHead":"72b9e5bc991a42107dc4c3427cf4e4fefcc9b6cd","_id":"socks5-https-client@1.1.0","_shasum":"ab89feaaed413b9d73be22b59d689289d4817eac","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.12.2","_npmUser":{"name":"mcg","email":"m@m.cg"},"maintainers":[{"name":"mcg","email":"m@m.cg"}],"dist":{"shasum":"ab89feaaed413b9d73be22b59d689289d4817eac","tarball":"http://registry-npm.ywwl.com/socks5-https-client/download/socks5-https-client-1.1.0.tgz","integrity":"sha512-9/xgyJUiotANMf5ipDvOjtwWyi4NGag2KiDfoHyzdRFpRiiMyv5rz+9//nG15Z+o61XgSU0MSCo3BH8saSWYfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYZPchIby8OQIbbv9QOfPLpfvVDqsTdSBk7HYXWke7LAiB9Q6qLnoygkqll27CTTSPN1jPcBp6BG+u9HSnc4NLRsw=="}],"size":3206,"noattachment":false,"key":"/socks5-https-client/-/socks5-https-client-1.1.0.tgz"},"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":1431553527570,"_cnpm_publish_time":1431553527570,"dist-tags":{"latest":"1.2.1"}}