{"name":"async-listen","description":"`net.Server#listen()` helper that returns a Promise for async / await","version":"3.1.0","main":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/vercel/async-listen.git"},"keywords":["async","await","es6","http","listen","net","promise","server"],"packageManager":"pnpm@7.33.3","devDependencies":{"@types/node":"^18.15.10","@types/tap":"^15.0.8","tap":"^16.3.4","ts-node":"^10.9.1","typescript":"^5.0.2"},"engines":{"node":">= 14"},"scripts":{"build":"tsc","prepublishOnly":"tsc","test":"tap --no-check-coverage --ts"},"license":"MIT","types":"./dist/index.d.ts","_id":"async-listen@3.1.0","gitHead":"13d15a061e93d9aa043be0ef5896cfa3f999d572","bugs":{"url":"https://github.com/vercel/async-listen/issues"},"homepage":"https://github.com/vercel/async-listen#readme","_nodeVersion":"18.20.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-TkOhqze98lP+6e7SPbrBpyhTpfvqqX8VYKGn4uckrgPan4WQIHnTaUD2zZzZS18eVVDj4rHPcIZa1PGgvo1DfA==","shasum":"fcb451fe113da0456d43d592a49f7007e015e922","tarball":"http://registry-npm.ywwl.com/async-listen/download/async-listen-3.1.0.tgz","fileCount":6,"unpackedSize":11421,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICqYTEITsKzLINOzv6pv5OX1hka8TOmnxjbc6FLGq4wvAiEAqq80D9dQijHvrjuk+7Vt3Wz7slA0sfWvzQRxFwUFD3g="}],"size":1991,"noattachment":false,"key":"/async-listen/-/async-listen-3.1.0.tgz"},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"directories":{},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/async-listen_3.1.0_1739302318403_0.4419352141430368"},"_hasShrinkwrap":false,"readme":"# async-listen\n\nPromisify `server.listen` for your HTTP/HTTPS/TCP server.\n\n## Install\n\n```sh\nnpm install async-listen\n```\n\n## Usage\n\n```typescript\nimport listen from 'async-listen';\nimport { createServer } from 'http';\n\nasync function main() {\n\tconst port = 3000;\n\tconst server = createServer();\n\tconst address = await listen(server, port);\n\tconsole.log(address); // => URL('http://127.0.0.1:3000')\n}\n\nmain().catch(console.error);\n```\n","publish_time":1739302318571,"_cnpm_publish_time":1739302318571,"dist-tags":{"latest":"3.1.0"}}