{"library":"fetch-compose","type":"library","category":null,"description":"A set of higher-order functions for the WHATWG Fetch API, providing composable middleware such as JSON handling, query string injection, timeout, retry (via vercel/fetch-retry), and JWT token support. Version 1.0.1 is the latest stable release, last updated in 2020. It re-exports cross-fetch for cross-platform compatibility (browser, Node, React Native) and includes TypeScript definitions. Key differentiators: opinionated default configuration via createFetch(), first-class JWT support with token refresh and request retry, and a functional composition approach inspired by higher-order functions.","language":"javascript","status":"maintenance","version":"1.0.1","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-compose","imports":["import createFetch from 'fetch-compose'","import { fetch } from 'fetch-compose'","import { withRetry } from 'fetch-compose'","import { withJSON } from 'fetch-compose'","import { withTimeout } from 'fetch-compose'","import { withJWTToken } from 'fetch-compose'"]},{"cmd":"yarn add fetch-compose","imports":[]},{"cmd":"pnpm add fetch-compose","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"fetch-compose","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}