{"name":"socks-proxy-agent","version":"8.0.5","description":"A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS","main":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"contributors":[{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com"},{"name":"Josh Glazebrook","email":"josh@joshglazebrook.com"},{"name":"talmobi","email":"talmobi@users.noreply.github.com"},{"name":"Indospace.io","email":"justin@indospace.io"},{"name":"Kilian von Pflugk","email":"github@jumoog.io"},{"name":"Kyle","email":"admin@hk1229.cn"},{"name":"Matheus Fernandes","email":"matheus.frndes@gmail.com"},{"name":"Ricky Miller","email":"richardkazuomiller@gmail.com"},{"name":"Shantanu Sharma","email":"shantanu34@outlook.com"},{"name":"Tim Perry","email":"pimterry@gmail.com"},{"name":"Vadim Baryshev","email":"vadimbaryshev@gmail.com"},{"name":"jigu","email":"luo1257857309@gmail.com"},{"name":"Alba Mendez","email":"me@jmendeth.com"},{"name":"Дмитрий Гуденков","email":"Dimangud@rambler.ru"},{"name":"Andrei Bitca","email":"63638922+andrei-bitca-dc@users.noreply.github.com"},{"name":"Andrew Casey","email":"amcasey@users.noreply.github.com"},{"name":"Brandon Ros","email":"brandonros1@gmail.com"},{"name":"Dang Duy Thanh","email":"thanhdd.it@gmail.com"},{"name":"Dimitar Nestorov","email":"8790386+dimitarnestorov@users.noreply.github.com"}],"repository":{"type":"git","url":"git+https://github.com/TooTallNate/proxy-agents.git","directory":"packages/socks-proxy-agent"},"keywords":["agent","http","https","proxy","socks","socks4","socks4a","socks5","socks5h"],"dependencies":{"agent-base":"^7.1.2","debug":"^4.3.4","socks":"^2.8.3"},"devDependencies":{"@types/async-retry":"^1.4.5","@types/debug":"^4.1.7","@types/dns2":"^2.0.3","@types/jest":"^29.5.1","@types/node":"^14.18.45","async-listen":"^3.0.0","async-retry":"^1.3.3","cacheable-lookup":"^6.1.0","dns2":"^2.1.0","jest":"^29.5.0","socksv5":"github:TooTallNate/socksv5#fix/dstSock-close-event","ts-jest":"^29.1.0","typescript":"^5.0.4","proxy":"2.2.0","tsconfig":"0.0.0"},"engines":{"node":">= 14"},"license":"MIT","scripts":{"build":"tsc","test":"jest --env node --verbose --bail test/test.ts","test-e2e":"jest --env node --verbose --bail test/e2e.test.ts","lint":"eslint . --ext .ts","pack":"node ../../scripts/pack.mjs"},"_id":"socks-proxy-agent@8.0.5","bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"homepage":"https://github.com/TooTallNate/proxy-agents#readme","_integrity":"sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==","_resolved":"/tmp/194f1676afcc1969e5abc1427b4edd77/socks-proxy-agent-8.0.5.tgz","_from":"file:socks-proxy-agent-8.0.5.tgz","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==","shasum":"b9cdb4e7e998509d7659d689ce7697ac21645bee","tarball":"http://registry-npm.ywwl.com/socks-proxy-agent/download/socks-proxy-agent-8.0.5.tgz","fileCount":8,"unpackedSize":25533,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID7UqPoFGr0msS0TXWbWJkZncREjzHi8Ta62uR8lvZcQAiEAyoc2dOi7QXzcFXMNBR65CTaFB1t4ZHXi7mHqkg0cO60="}],"size":6814,"noattachment":false,"key":"/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz"},"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/socks-proxy-agent_8.0.5_1733542331346_0.26803429943432455"},"_hasShrinkwrap":false,"readme":"socks-proxy-agent\n================\n### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS\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`\nand `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\nExamples\n--------\n\n```ts\nimport https from 'https';\nimport { SocksProxyAgent } from 'socks-proxy-agent';\n\nconst agent = new SocksProxyAgent(\n\t'socks://your-name%40gmail.com:abcdef12345124@br41.nordvpn.com'\n);\n\nhttps.get('https://ipinfo.io', { agent }, (res) => {\n\tconsole.log(res.headers);\n\tres.pipe(process.stdout);\n});\n```\n\n#### `ws` WebSocket connection example\n\n```ts\nimport WebSocket from 'ws';\nimport { SocksProxyAgent } from 'socks-proxy-agent';\n\nconst agent = new SocksProxyAgent(\n\t'socks://your-name%40gmail.com:abcdef12345124@br41.nordvpn.com'\n);\n\nvar socket = new WebSocket('ws://echo.websocket.events', { agent });\n\nsocket.on('open', function () {\n\tconsole.log('\"open\" event!');\n\tsocket.send('hello world');\n});\n\nsocket.on('message', function (data, flags) {\n\tconsole.log('\"message\" event! %j %j', data, flags);\n\tsocket.close();\n});\n```","publish_time":1733542331601,"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_cnpm_publish_time":1733542331601,"dist-tags":{"beta":"6.2.0-beta.1","latest":"10.1.0"}}