axios-inherit

JSON →
library 1.0.1 ·javascript
verified Jun 7, 2026

axios-inherit (v1.0.1, stable, low release cadence) is a small utility that adds interceptor inheritance to axios. It ensures that any existing interceptors on the global axios instance are inherited by new instances created via axios.create(), and that new interceptors added to the global instance are applied to already existing instances. It also handles interceptor removal. This solves a common pain point when using axios across modules or configuring shared interceptors. It is available on npm, ships TypeScript types, and has a minimal API surface. Similar functionality can be achieved manually, but axios-inherit provides a simple drop-in solution.