fetch-h2
JSON →A Fetch API client for Node.js that supports HTTP/1.1 and HTTP/2 with automatic protocol negotiation via ALPN. Current stable version is 3.0.2, published on npm, with semi-regular releases. Key differentiators include transparent HTTP/2 support, cookie management, built-in response compression (br, gzip, deflate), and TypeScript types. It uses the native Node.js http, https, and http2 modules without external dependencies, and manages sessions and socket reuse automatically. It provides a familiar browser-like fetch API extended for Node.js streams and offers context-based cookies and custom decoders.
Resources
packagefetch-h ↗