Preparing for system design interviews?  Try bugzed.com →

serve-once

JSON →
library 3.0.2 ·javascript
verified Jun 17, 2026

A utility for testing Express middleware by serving exactly one HTTP request then closing the server. It creates an HTTP server on a free port, runs the middleware, serves one request, and resolves with the response body. The current stable version is 3.0.2, released in early 2024. It supports GET, POST, PUT, DELETE, HEAD, and other methods. The package was rewritten in v3 to remove node-fetch dependency and requires Node >=18. It returns responses as string, JSON, buffer, or stream. It is lightweight and similar to supertest but simpler and focused on single-request testing.

total hits 16
actors 4 distinct systems
last hit 23d ago GPTBot
GPTBot
4
Amazonbot
4
Script
1
Humans
4

top countries 🇺🇸 United States · VN · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France