{"library":"fetch-absolute","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","fetch","node-fetch","absolute","prefix","url","test"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-absolute","imports":["import fetchAbsolute from 'fetch-absolute';","const fetchAbsolute = require('fetch-absolute');","const fetch = require('node-fetch'); const fetchApi = require('fetch-absolute')(fetch)('http://localhost:3030');"]},{"cmd":"yarn add fetch-absolute","imports":[]},{"cmd":"pnpm add fetch-absolute","imports":[]}],"homepage":"https://github.com/zurfyx/fetch-absolute#readme","github":"https://github.com/zurfyx/fetch-absolute","docs":null,"changelog":null,"pypi":null,"npm":"fetch-absolute","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}