fetch-absolute

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

Fetch wrapper that prepends a default base URL to all fetch calls. Version 1.0.0, released as a stable package. It works with both browser's native fetch and node-fetch. Simplifies testing and server-side code by avoiding repetitive URL prefixes. Unlike node-fetch or isomorphic-fetch, it adds a base URL layer without modifying the underlying fetch implementation.