Custom Axios adapter that enables HTTP/2 support using http2-wrapper. Current stable version 1.0.3, released regularly. Key differentiator: fills the gap until Axios natively supports HTTP/2, offering seamless integration with existing Axios codebases. Unlike alternatives, it requires only peer dependency axios ^1.9 and optionally http2-wrapper for configuration.
npm install axios-http2-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: import and create adapter, assign to axios defaults, then use axios as usual with HTTP/2 support.
Ensure http2-wrapper is installed (npm install http2-wrapper) or configure agent explicitly.
Run npm install http2-wrapper
Use createHTTP2Adapter() to create adapter, not the module itself.
Set force: true in adapter config to skip ALPN check.