{"_id":"@bun-win32/ws2_32","_rev":"9-dc14d4f581c7e6bae64b4e2bef38401c","name":"@bun-win32/ws2_32","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@bun-win32/ws2_32","version":"1.0.0","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":{"name":"Stev Peifer","email":"stev@bell.net"},"license":"MIT","_id":"@bun-win32/ws2_32@1.0.0","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"d62365e3eac2ed01da6d9eae5f31a6630ffcd8a4","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.0.tgz","fileCount":5,"integrity":"sha512-lhZT6ZoJPoMl5mMV/3z9JjJWlmxI+VWsp4Hc3uSLQEWI6/Tr+/vlP+dHul5A7DYWSu5IdZ2M4mswlch8FJoRAQ==","signatures":[{"sig":"MEUCIQD0W99Sa95Q+Lx0ImLpjAdtMl6GN/dFZvSeKoUvjIsRYAIgWaDrhvn67l6HP8LsSw5ZqiQVsDXC8z//uleiTor0DeE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74779},"main":"./index.ts","type":"module","module":"index.ts","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"gitHead":"5ec092cbe4ce4defe6d374ca2c83051d1af3bdf2","private":false,"scripts":{"example":"bun ./example/ws2_32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.1.0","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","dependencies":{"@bun-win32/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.0_1775494106948_0.844164635566053","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bun-win32/ws2_32","version":"1.0.1","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/ws2_32@1.0.1","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"bc5c6487bde4bdacf3cb3e200bee013f1ab55c33","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.1.tgz","fileCount":6,"integrity":"sha512-Wi7m8A+jrq0NKom2G9OtEg4E9U5cffg84ijQ7Mnl8Zi/8h4pdsBl1jguDm5/AY0ckZYLJGUGpCSDPzmaL2vSmg==","signatures":[{"sig":"MEYCIQC08u31Iw4LCp9r2G3sDJqfQ3tfh5sIfi05SY907kybQgIhAOBuNyVwYAFysYRMZ0guT1zkKADiFWSzubDsolcnB7WI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76991},"main":"./index.ts","type":"module","module":"index.ts","shasum":"bc5c6487bde4bdacf3cb3e200bee013f1ab55c33","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/ws2_32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-Wi7m8A+jrq0NKom2G9OtEg4E9U5cffg84ijQ7Mnl8Zi/8h4pdsBl1jguDm5/AY0ckZYLJGUGpCSDPzmaL2vSmg==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.1_1775514771200_0.7678292962642914","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bun-win32/ws2_32","version":"1.0.2","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":{"name":"Stev Peifer","email":"stev@bell.net"},"license":"MIT","_id":"@bun-win32/ws2_32@1.0.2","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"24e93ad79f31afd4b3541bec25caa787d228f5b1","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.2.tgz","fileCount":6,"integrity":"sha512-QJVtFrdMRT/5f5qIlNpZY1G4hCZ5Yt0CQjlgNi81oB94zxhohzPEKclvDlrWcqWV4Rcap4YzH8vwZOu6U/yazQ==","signatures":[{"sig":"MEYCIQDccS5D52xvPQFFmpt7doPKcnfowfsAAMMUfl6lYMdKhAIhAJYZpXc4o8j4bAHM+bAR0cusFNBtYnAWgLbkxip9V8mm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77337},"main":"./index.ts","type":"module","module":"index.ts","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"gitHead":"f86f0df557aa6cfee8907bf3af5592855a854c15","private":false,"scripts":{"example":"bun ./example/ws2_32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.1.0","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.0","dependencies":{"@bun-win32/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.2_1775584532200_0.8660974179516177","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@bun-win32/ws2_32","version":"1.0.3","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/ws2_32@1.0.3","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"bf8359baf24ecfbec7b63b742c2ed1d0fc78e240","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.3.tgz","fileCount":6,"integrity":"sha512-hj7fcdN4wFA4npWeEGVU1Za/3Q2w44S25d9hzbTj0VO1tp2JEK9ML9otxjJnCtKl1j8gJQfi9hycxqmen4fd+w==","signatures":[{"sig":"MEQCIDvCne0dioXbSgjhFHKdd4VlO9LQDpvqwF5U11ACNK7lAiAOVoJxi3oj+9J+7WgRZyg8suvOkeybl8OimPhRyTxLJg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77384},"main":"./index.ts","type":"module","module":"index.ts","shasum":"bf8359baf24ecfbec7b63b742c2ed1d0fc78e240","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example":"bun ./example/ws2_32.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-hj7fcdN4wFA4npWeEGVU1Za/3Q2w44S25d9hzbTj0VO1tp2JEK9ML9otxjJnCtKl1j8gJQfi9hycxqmen4fd+w==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.3_1775616202861_0.9704368304528685","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@bun-win32/ws2_32","version":"1.0.4","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/ws2_32@1.0.4","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"6fbeb81d4665bdf6cf3d4a1ce80bbb08532b6b04","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.4.tgz","fileCount":6,"integrity":"sha512-QABJNJDLDLwGAN0ieiyhhSZetFKNeJoNf7/JMzDCgHvghG14cvEssyzicNLVpEseK5laJU2y0843FQw4xCdzrQ==","signatures":[{"sig":"MEUCIQD6kLk6RZ0XK2f+eOAgwk1Bw6FWoaINAA5ycOjgvXh6xwIgFiZPFW2rU2ZhUeC0WfKY0/Acu2KOqYo5Q0hirO6aUq0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77498},"main":"./index.ts","type":"module","module":"index.ts","shasum":"6fbeb81d4665bdf6cf3d4a1ce80bbb08532b6b04","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:dns-lookup":"bun ./example/dns-lookup.ts","example:socket-diagnostic":"bun ./example/socket-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-QABJNJDLDLwGAN0ieiyhhSZetFKNeJoNf7/JMzDCgHvghG14cvEssyzicNLVpEseK5laJU2y0843FQw4xCdzrQ==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.4_1775687635740_0.7352646472912485","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@bun-win32/ws2_32","version":"1.0.5","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":"Stev Peifer <stev@bell.net>","license":"MIT","_id":"@bun-win32/ws2_32@1.0.5","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"b0e9df7ade271379958eb44c459f725b40f93d1c","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.5.tgz","fileCount":6,"integrity":"sha512-Q2+Tym6J4M+AvF1weWoFO4A/Dy5tTQglM8xSpkeYp5Weaq0vhuQn5ME77IToeEpb3Ns9xrK6c0AFrQxIBed1mQ==","signatures":[{"sig":"MEUCIEZ5Jjo0MoYJWJSSbn0bqYJTe+9K64Qqc1ru1bf3DWfgAiEA4mERJQsY03Unzr3H5yKTkpj6YnkoLQoOhQ4A5xKgQ5M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77533},"main":"./index.ts","type":"module","module":"index.ts","shasum":"b0e9df7ade271379958eb44c459f725b40f93d1c","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:dns-lookup":"bun ./example/dns-lookup.ts","example:socket-diagnostic":"bun ./example/socket-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-Q2+Tym6J4M+AvF1weWoFO4A/Dy5tTQglM8xSpkeYp5Weaq0vhuQn5ME77IToeEpb3Ns9xrK6c0AFrQxIBed1mQ==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.5_1780581933086_0.3085951183190405","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@bun-win32/ws2_32","version":"1.0.6","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","_id":"@bun-win32/ws2_32@1.0.6","maintainers":[{"name":"obscuritysrl","email":"stev@bell.net"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"5f7b7ad6dbdb18eb8c15ebd77cdf72fe63e336ba","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-1.0.6.tgz","fileCount":6,"integrity":"sha512-NJoTvUkLR2b1lB5y+e8txm8bpScInPFCcrvlAmfbBZASU3aJhGNrQCxsfHPzIceQvV86AtNQhzMW5LHcb7GluQ==","signatures":[{"sig":"MEQCIFDqjt59/LnR4IGJfx0e8nzOXjtvETFQQt6eSBEfMCvFAiB544zKr3+L+UHOG2E6R+WRdI3VkjM2NnNuqfp1IXUVXg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77538},"main":"./index.ts","type":"module","module":"index.ts","shasum":"5f7b7ad6dbdb18eb8c15ebd77cdf72fe63e336ba","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:dns-lookup":"bun ./example/dns-lookup.ts","example:socket-diagnostic":"bun ./example/socket-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev@bell.net"},"_integrity":"sha512-NJoTvUkLR2b1lB5y+e8txm8bpScInPFCcrvlAmfbBZASU3aJhGNrQCxsfHPzIceQvV86AtNQhzMW5LHcb7GluQ==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@bun-win32/core":"1.1.4"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_1.0.6_1781375565936_0.27954231926953654","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@bun-win32/ws2_32","version":"2.0.0","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","_id":"@bun-win32/ws2_32@2.0.0","maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dist":{"shasum":"11882bb6a078c87be249acc3886d6812a1a4abe1","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-2.0.0.tgz","fileCount":6,"integrity":"sha512-KifSl7Qo+JVzZ97laYArl7oJF70XBjzTHncTibtXWa8NhLiRQUyOg9hXtVBT06+4j/U/jyWuRZiO7dZghZ+C0A==","signatures":[{"sig":"MEQCIF0qxi8DDwUc5jVXBVUA3M6ywdOG3em/H9ykS/J1zpXuAiBZyaAfNfMpt7yoxvK8yxM5CEdCXak0pLfRS0HeDpNFqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80933},"main":"./index.ts","type":"module","module":"index.ts","shasum":"11882bb6a078c87be249acc3886d6812a1a4abe1","engines":{"bun":">=1.1.0"},"exports":{".":"./index.ts"},"private":false,"scripts":{"example:dns-lookup":"bun ./example/dns-lookup.ts","example:socket-diagnostic":"bun ./example/socket-diagnostic.ts"},"_npmUser":{"name":"obscuritysrl","email":"stev.p@outlook.com"},"_integrity":"sha512-KifSl7Qo+JVzZ97laYArl7oJF70XBjzTHncTibtXWa8NhLiRQUyOg9hXtVBT06+4j/U/jyWuRZiO7dZghZ+C0A==","repository":{"url":"git://github.com/ObscuritySRL/bun-win32.git","type":"git","directory":"packages/ws2_32"},"_npmVersion":"10.8.3","description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"@bun-win32/core":"2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/ws2_32_2.0.0_1782436005078_0.6893960629634752","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"author":"Stev Peifer <stev.p@outlook.com>","bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"dependencies":{"@bun-win32/core":"2.0.1"},"description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","devDependencies":{"@types/bun":"latest"},"exports":{".":"./index.ts"},"license":"MIT","module":"index.ts","name":"@bun-win32/ws2_32","peerDependencies":{"typescript":"^5"},"private":false,"homepage":"https://github.com/ObscuritySRL/bun-win32#readme","repository":{"type":"git","url":"git://github.com/ObscuritySRL/bun-win32.git","directory":"packages/ws2_32"},"type":"module","version":"2.0.1","main":"./index.ts","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"sideEffects":false,"engines":{"bun":">=1.1.0"},"scripts":{"example:dns-lookup":"bun ./example/dns-lookup.ts","example:socket-diagnostic":"bun ./example/socket-diagnostic.ts"},"_id":"@bun-win32/ws2_32@2.0.1","_integrity":"sha512-fEvggWN7oNbT/Il5cdyaD21YHVE8sHMYZQDnuxAKF98rRMgSAZGgWYofWq9PGvVM2PpnwKC0kL1egfa0HXw6Lw==","_nodeVersion":"26.3.0","_npmVersion":"10.8.3","shasum":"aed3531f96b8e27e1133829b56e67fb19fea73af","dist":{"integrity":"sha512-fEvggWN7oNbT/Il5cdyaD21YHVE8sHMYZQDnuxAKF98rRMgSAZGgWYofWq9PGvVM2PpnwKC0kL1egfa0HXw6Lw==","shasum":"aed3531f96b8e27e1133829b56e67fb19fea73af","tarball":"https://registry.npmjs.org/@bun-win32/ws2_32/-/ws2_32-2.0.1.tgz","fileCount":6,"unpackedSize":80933,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4qqjG+BWk2x5xwXHE9Og5ky1a4vSdpLmEH/c8l6Yl1gIhAL+zo7j6gdU1UXyYCGEDgCJ/82Mw93jOP4agOx2V5Qmt"}]},"_npmUser":{"name":"obscuritysrl","email":"stev.p@outlook.com"},"directories":{},"maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ws2_32_2.0.1_1782438230202_0.7037120280109943"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-06T16:48:26.864Z","modified":"2026-06-26T01:43:50.586Z","1.0.0":"2026-04-06T16:48:27.088Z","1.0.1":"2026-04-06T22:32:51.419Z","1.0.2":"2026-04-07T17:55:32.339Z","1.0.3":"2026-04-08T02:43:22.995Z","1.0.4":"2026-04-08T22:33:55.879Z","1.0.5":"2026-06-04T14:05:33.219Z","1.0.6":"2026-06-13T18:32:46.065Z","2.0.0":"2026-06-26T01:06:45.239Z","2.0.1":"2026-06-26T01:43:50.472Z"},"bugs":{"url":"https://github.com/ObscuritySRL/bun-win32/issues"},"author":"Stev Peifer <stev.p@outlook.com>","license":"MIT","homepage":"https://github.com/ObscuritySRL/bun-win32#readme","keywords":["bun","ffi","win32","windows","ws2_32","winsock","bindings","typescript","dll","socket","tcp","udp","network"],"repository":{"type":"git","url":"git://github.com/ObscuritySRL/bun-win32.git","directory":"packages/ws2_32"},"description":"Zero-dependency, zero-overhead Win32 WS2_32 bindings for Bun (FFI) on Windows.","maintainers":[{"name":"obscuritysrl","email":"stev.p@outlook.com"}],"readme":"# @bun-win32/ws2_32\r\n\r\nZero-dependency, zero-overhead Win32 WS2_32 bindings for [Bun](https://bun.sh) on Windows.\r\n\r\n## Overview\r\n\r\n`@bun-win32/ws2_32` exposes the `ws2_32.dll` exports using [Bun](https://bun.sh)'s FFI. It provides a single class, `Ws2_32`, which lazily binds native symbols on first use. You can optionally preload a subset or all symbols up-front via `Preload()`.\r\n\r\nThe bindings are strongly typed for a smooth DX in TypeScript.\r\n\r\n## Features\r\n\r\n- [Bun](https://bun.sh)-first ergonomics on Windows 10/11.\r\n- Direct FFI to `ws2_32.dll` (BSD sockets, Winsock extensions, DNS resolution, provider catalog, and more).\r\n- In-source docs in `structs/Ws2_32.ts` with links to Microsoft Docs.\r\n- Lazy binding on first call; optional eager preload (`Ws2_32.Preload()`).\r\n- No wrapper overhead; calls map 1:1 to native APIs.\r\n- Strongly-typed Win32 aliases (see `types/Ws2_32.ts`).\r\n\r\n## Requirements\r\n\r\n- [Bun](https://bun.sh) runtime\r\n- Windows 10 or later\r\n\r\n## Installation\r\n\r\n```sh\r\nbun add @bun-win32/ws2_32\r\n```\r\n\r\n## Quick Start\r\n\r\n```ts\r\nimport Ws2_32, { AddressFamily, Protocol, SocketType } from '@bun-win32/ws2_32';\r\n\r\n// Initialize Winsock\r\nconst wsaData = Buffer.alloc(408);\r\nWs2_32.WSAStartup(0x0202, wsaData.ptr);\r\n\r\n// Create a TCP socket\r\nconst sock = Ws2_32.socket(AddressFamily.AF_INET, SocketType.SOCK_STREAM, Protocol.IPPROTO_TCP);\r\nconsole.log('Socket: %s', sock);\r\n\r\n// Clean up\r\nWs2_32.closesocket(sock);\r\nWs2_32.WSACleanup();\r\n```\r\n\r\n> [!NOTE]\r\n> AI agents: see `AI.md` for the package binding contract and source-navigation guidance. It explains how to use the package without scanning the entire implementation.\r\n\r\n## Examples\r\n\r\nRun the included examples:\r\n\r\n```sh\r\nbun run example              # Winsock TCP socket demo\r\n```\r\n\r\n## Notes\r\n\r\n- Either rely on lazy binding or call `Ws2_32.Preload()`.\r\n- Windows only. Bun runtime required.\n- **SAL types & naming:** nullability is in the **type** — `Optional<T>` (formally optional, SAL `_*opt_`) and `Nullable<T>` (plain `[in]`/`[out]` the docs say can be NULL), the null sentinel derived from `T` (`null` for pointers `LP*`/`P*`, `0n` for handles/by-value addresses); direction is in the **parameter name** — `_out` (`_Out_`), `_in_out` (`_Inout_`), `_In_` bare. See `AI.md` and the repo `AGENTS.md`.\n","readmeFilename":"README.md"}