Interceptor library for the native fetch command inspired by angular http interceptors.
fetch-intercept monkey patches the global
fetch method and allows you the usage in Browser, Node and Webworker environments.
npm install fetch-intercept2 --save
Note: You need to require
fetch-intercept before you use
fetch the first time.
Make sure you have a
fetch compatible environment or added a appropriate polyfill.
;const unregister = fetchIntercept;// Call fetch to see your interceptors in action.;// Unregister your interceptor;
0.17 or higher versions.