An augmented Node.js HTTP server that supports HTTP, HTTPS, and HTTP/2 on the same instance, with the ability to listen on multiple ports, sockets, or file descriptors simultaneously. Version 1.0.0 is stable with irregular release cadence. Key differentiators include unified server creation via `create()`, promise-based `.listen()` with nice addresses, and built-in support for HTTP/2 via `http2` (Node >=8) or `spdy` (Node <8). Suitable for advanced server setups needing multiple protocols or endpoints.
npm install http-server-plusVerified import paths — ran on the pinned version, not inferred.
Shows creating a server with Express request handler, listening on two ports concurrently using async/await.
Use async/await or .then() to handle the Promise returned by listen().
For Node >=8, use http2.createSecureServer as shown in docs.
Use Promise.all() to await all listen() calls as shown in the example.
Use `const { create } = require('http-server-plus');`Check error.niceAddress for details; ensure ports are free, certificates exist, and sockets paths are valid.
No dependency data recorded yet.