{"name":"socks-proxy-agent","version":"10.0.0","type":"module","description":"A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS","exports":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"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":{"debug":"^4.3.4","socks":"^2.8.3","agent-base":"9.0.0"},"devDependencies":{"@types/async-retry":"^1.4.5","@types/debug":"^4.1.7","@types/dns2":"^2.0.3","@types/node":"^22.13.0","async-listen":"^3.0.0","async-retry":"^1.3.3","cacheable-lookup":"^6.1.0","dns2":"^2.1.0","socksv5":"github:TooTallNate/socksv5#d937368b28e929396166d77a06d387a4a902bd51","typescript":"^5.1.6","tsconfig":"0.0.0","proxy":"4.0.0"},"engines":{"node":">= 20"},"license":"MIT","scripts":{"build":"tsc","test":"vitest --exclude test/e2e.test.ts","test-e2e":"vitest run test/e2e.test.ts","lint":"eslint . --ext .ts","pack":"node ../../scripts/pack.mjs"},"_id":"socks-proxy-agent@10.0.0","bugs":{"url":"https://github.com/TooTallNate/proxy-agents/issues"},"homepage":"https://github.com/TooTallNate/proxy-agents#readme","_integrity":"sha512-pyp2YR3mNxAMu0mGLtzs4g7O3uT4/9sQOLAKcViAkaS9fJWkud7nmaf6ZREFqQEi24IPkBcjfHjXhPTUWjo3uA==","_resolved":"/tmp/6fd4e7263ed16c2e2607fedac4045053/socks-proxy-agent-10.0.0.tgz","_from":"file:socks-proxy-agent-10.0.0.tgz","_nodeVersion":"20.20.1","_npmVersion":"11.12.1","dist":{"integrity":"sha512-pyp2YR3mNxAMu0mGLtzs4g7O3uT4/9sQOLAKcViAkaS9fJWkud7nmaf6ZREFqQEi24IPkBcjfHjXhPTUWjo3uA==","shasum":"e94a497f890d790a67274c19837c5bbe3f182220","tarball":"http://registry-npm.ywwl.com/socks-proxy-agent/download/socks-proxy-agent-10.0.0.tgz","fileCount":7,"unpackedSize":17696,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/socks-proxy-agent@10.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHEnUto/Ea7LOId2QpUfl76jUqt5KdPkDdXCxnlIsQIoAiEAz+OC4jEnXqRzT2ZZUS0qi4RR2d2GzdsMiuFX+sQRH4Y="}],"size":6233,"noattachment":false,"key":"/socks-proxy-agent/-/socks-proxy-agent-10.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e5739ea5-ec71-4fa4-b36e-d8e640a21014"}},"directories":{},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/socks-proxy-agent_10.0.0_1775026678527_0.9990746740451981"},"_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":1775026678670,"_cnpm_publish_time":1775026678670,"dist-tags":{"beta":"6.2.0-beta.1","latest":"10.1.0"}}