A lightweight wrapper around XMLHttpRequest that provides a fetch-like API with promise-based requests. Version 1.1.91 supports GET, POST, PUT, DELETE, request aborting, and configurable timeout. Unlike native fetch, it supports upload progress and runs in older browsers lacking fetch support, but note the returned object is not a native Promise. TypeScript types are included. Release cadence is irregular.
npm install xml-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates GET, POST, and aborting a request using the named http import from xml-fetch.
Do not use with Promise.all; handle requests individually.
Use either 'import { http } from "xml-fetch"' or 'import XmlFetch from "xml-fetch"', not both.Always set timeout when providing timeoutError.
Use 'import { http } from "xml-fetch"' or instantiate XmlFetch: const instance = new XmlFetch(); instance.get(...)Check URL string: ensure no stray commas or spaces, e.g., http.get(`${API_URL}/${method}/`, { query }) but the code shows trailing comma after slash.No dependency data recorded yet.