Provides a WebAPI Fetch implementation backed by an Axios client instance, allowing pre-configured Axios clients to be used in libraries that require a fetch function, such as Apollo Link HTTP. Version 1.1.0 is the latest stable release. It is a minimal bridge library with no active development since 2019, but it still works for its niche use case. Differentiator: enables reuse of existing Axios interceptors and configuration with fetch-dependent tools.
npm install axios-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a fetch function from an Axios instance and use it in Apollo Link HTTP or as a standard fetch replacement.
Use named import syntax: import { buildAxiosFetch } from 'axios-fetch'Ensure you pass a valid Axios instance created with axios.create() or the default axios.
Test with your axios version; if issues arise, consider implementing a custom fetch wrapper using axios directly.
Use import { buildAxiosFetch } from 'axios-fetch' or const { buildAxiosFetch } = require('axios-fetch')Run npm install axios-fetch and ensure the import statement is correct