fetch-interceptor
JSON →A lightweight library to intercept and modify fetch requests and responses in the browser. Current stable version is 1.1.0. It provides hooks for before request, on response success, and on response failure. Key differentiator is its simplicity and zero dependencies, unlike more complex alternatives like Mock Service Worker or Polly.js. The library is actively maintained with a small API surface, making it easy to integrate into any project that uses the Fetch API. It is released on npm and supports CommonJS and ES modules via module field.
Traffic · last 30 days stale · no recent hits
total hits 8
actors 2 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇮🇱 Israel · 🇨🇦 Canada
Resources
packagefetch-interceptor ↗
API endpoints
full doc /v1/registry/fetch-interceptor