An axios adapter that allows using axios with Taro's request API in Taro miniapp projects. Version 0.0.3, released as an early-stage package with no regular release cadence. It enables developers to use the familiar axios interface and interceptors in Taro apps, while Taro handles the underlying multi-platform networking. Key differentiator: allows code reuse between web and miniapp environments by using axios instead of Taro.request directly. Currently only provides the TaroAdapter export.
npm install axios-taro-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create an axios instance with TaroAdapter and set up request/response interceptors.
Pin exact version and test upgrades carefully.
Run `npm install axios axios-taro-adapter`.
Use `import { TaroAdapter } from 'axios-taro-adapter'`.Ensure code runs in Taro context before using adapter.
Ensure your code runs inside a Taro app, e.g., in a page or component.
Run `npm install axios-taro-adapter --save` and verify import statement.