An RxJS-based wrapper around Axios that returns observables for HTTP requests, supporting cancellation, retries, and transformation. As of v1.7.0 (stable, maintained), it requires Node >=18, axios >=1.0.0, and rxjs >=5.5.12. It provides a complete Axios client interface but with reactive patterns. Key differentiator: seamless integration of Axios features with RxJS observables, enabling composition with other reactive streams. No direct support for browser environments as it relies on Node's http module.
npm install rxjs-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an Axios-like client returning Observables instead of promises. Demonstrates GET request, response transformation, and cancellation via unsubscribe.
Use import { ... } from 'rxjs-axios' instead of require('rxjs-axios').Use import { Axios } from 'rxjs-axios'.Use AxiosResponse directly from the package or axios types.
Upgrade Node.js to version 18 or higher.
Use RxJS Subscription.unsubscribe() to cancel requests.
Change import to: import { Axios } from 'rxjs-axios'; OR use dynamic import: const { Axios } = await import('rxjs-axios');Ensure tsconfig.json has 'moduleResolution': 'node' or 'node16'. For TypeScript <4.7, add 'paths': { 'rxjs-axios': ['./node_modules/rxjs-axios/dist/index.d.ts'] }Import Observable from 'rxjs' and operators from 'rxjs/operators'. Avoid import { Observable } from 'rxjs/Observable'.