GitShow/vercel/async-listen
vercel

async-listen

Promisify server.listen for your HTTP/HTTPS/TCP server.

by vercel
Star on GitHubForkWebsitenpm

TypeScript

56 stars6 forks5 contributorsQuiet · 3mo agoSince 20193.1.0

Meet the team

See all 5 on GitHub →
TooTallNate
TooTallNate10 contributions
Kikobeats
Kikobeats5 contributions
styfle
styfle4 contributions
Ethan-Arrowood
Ethan-Arrowood1 contribution

Languages

View on GitHub →
TypeScript97.2%
JavaScript2.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
37
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 3mo ago
See all on GitHub →
absalonCRC
fix: handle server 'error' event in listen() to prevent process crashOpenPR

Summary Fix a process crash vulnerability in the function when fails. Finding: Unhandled Error Event Crashing Process (Medium) File: , lines 25–28 Issue: The function does not attach an event handler. When fails (e.g., EADDRINUSE, EACCES, invalid arguments), Node.js emits an unhandled event, which crashes the process with . Additionally, never settles, creating a dangling unresolved promise. Fix: Added between and events Errors from are now properly propagated as promise rejections instead of crashing the process Verification ✅ Promise resolves correctly when server listens successfully ✅ Promise rejects with the error when fails ✅ Backward compatible — interface unchanged Related CWE-754: Improper Check for Unusual Conditions 🔒 Security Note for Vercel Security Team This PR fixes a process crash vulnerability. This finding may be eligible for the Vercel Open Source Bug Bounty Program** (Tier 2: $250–$5,000). Ref: https://hackerone.com/vercel-open-source

absalonCRC · 2mo ago

Recent fixes

View closed PRs →
styfle
chore: remove pull_request_targetMergedPR

Removed pull_request_target event from workflow.

styfle · 3mo ago
Kikobeats
feat: add `endpoint` methodMergedPR

Extracted the logic for getting the endpoint of the server into a standalone function, so it can be used for servers that are already listening.

Kikobeats · 1y ago
Kikobeats
chore(ci): fix corepackMergedPR

same as https://github.com/vercel/nft/pull/473

Kikobeats · 1y ago
Structured data for AI agents

Repository: vercel/async-listen. Description: Promisify server.listen for your HTTP/HTTPS/TCP server. Stars: 56, Forks: 6. Primary language: TypeScript. Languages: TypeScript (97.2%), JavaScript (2.8%). Homepage: https://npmjs.com/async-listen Latest release: 3.1.0 (1y ago). Open PRs: 1, open issues: 0. Last activity: 3mo ago. Community health: 37%. Top contributors: TooTallNate, Kikobeats, styfle, Ethan-Arrowood.

·@ofershap

Replace github.com with gitshow.dev