fetch-default

JSON →
library 1.0.18 ·javascript
verified Jun 7, 2026

Adds global default properties to the web fetch API, allowing developers to set default headers, methods, and lifecycle hooks (beforeSend, dataFilter, fail) without wrapping every fetch call. Stable version 1.0.18 with infrequent updates. Differentiates from similar utilities by offering beforeSend and dataFilter interceptors, and by extending the global fetch object rather than requiring a proxy or wrapper.