{"library":"fetch-wrap","type":"library","category":null,"description":"Extend the WHATWG fetch API with middleware in a transparent, recursive manner. Current stable version is 0.1.2. It allows chaining of middleware functions that can modify URLs, options, response handling, and error catching. Key differentiators include built-in middleware for URL parameters, conditional options by URL pattern, JSON serialization/deserialization, and logging. Supports any fetch implementation (native, ponyfill, polyfill) and is isomorphic. Unit tested and benchmarked against plain fetch.","language":"javascript","status":"active","version":"0.1.2","tags":["javascript","fetch","wrap","middleware","whatwg","http","client","isomorphic"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-wrap","imports":["import fetchWrap from 'fetch-wrap'","import { urlParams, optionsByUrlPattern, sendJson, receiveJson, logger } from 'fetch-wrap/middleware'","import { merge } from 'fetch-wrap'"]},{"cmd":"yarn add fetch-wrap","imports":[]},{"cmd":"pnpm add fetch-wrap","imports":[]}],"homepage":"https://github.com/benjamine/fetch-wrap#readme","github":"https://github.com/benjamine/fetch-wrap","docs":null,"changelog":null,"pypi":null,"npm":"fetch-wrap","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}