Native http2 fetch implementation for Node.js (v1.5.0). Provides a WHATWG fetch-compatible API that exclusively uses HTTP/2 connections. Requires Node >=16. Ships TypeScript types. Unlike node-fetch or undici, this library does not fall back to HTTP/1.1 — it assumes the server supports HTTP/2. Suitable for services that target HTTP/2-only endpoints. Release cadence: occasional minor/patch updates.
npm install fetch-http2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic fetch usage with the HTTP/2-only fetch implementation.
Ensure target endpoints support HTTP/2, or use a fallback library like node-fetch or undici.
Upgrade Node.js to version 16 or higher.
Use an HTTP/2-compatible proxy or configure directly.
Monitor releases.
Use `import { fetch } from 'fetch-http2'` or `const { fetch } = require('fetch-http2')`.Verify that the server advertises HTTP/2 support (via ALPN or direct knowledge).
Ensure the first argument to fetch is a string URL or a Request object.
No dependency data recorded yet.