axios-inherit
TypeScript icon, indicating that this package has built-in type declarations

1.0.1Β β€’Β PublicΒ β€’Β Published

axios-inherit

πŸ‘¨β€πŸ‘¦ Add interceptor inheritance to axios

import axios from 'axios'
import axiosInherit from 'axios-inherit'

axiosInherit(axios)
  1. "Inherit" any existing interceptors of global axios instance when creating a new axios instance.
  2. Apply new interceptors to existing instances when adding interceptors to global axios instance.
  3. Do the same for adding interceptors ("use") and removing them ("eject")

Package Sidebar

Install

npm i axios-inherit

Weekly Downloads

1,205

Version

1.0.1

License

MIT

Unpacked Size

3.15 kB

Total Files

4

Last publish

Collaborators

  • omrilotan
  • fiverrit