{"library":"zhi-fetch-middleware","type":"library","category":null,"description":"A lightweight middleware layer for fetch requests that allows adding interceptors (before, after) and error handling. Version 0.13.5 is the latest stable release, with no external dependencies. It provides a simple API to compose middleware functions for modifying requests and responses, similar to Express middleware but for the Fetch API. Ships TypeScript definitions. Suitable for small to medium projects needing request/response transforms or logging.","language":"javascript","status":"active","version":"0.13.5","tags":["javascript","zhi","lib","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install zhi-fetch-middleware","imports":["import { createMiddleware } from 'zhi-fetch-middleware'","import { FetchMiddleware } from 'zhi-fetch-middleware'","import { applyMiddleware } from 'zhi-fetch-middleware'"]},{"cmd":"yarn add zhi-fetch-middleware","imports":[]},{"cmd":"pnpm add zhi-fetch-middleware","imports":[]}],"homepage":"https://github.com/terwer/zhi/tree/main/libs/zhi-fetch-middleware","github":"https://github.com/terwer/zhi","docs":null,"changelog":null,"pypi":null,"npm":"zhi-fetch-middleware","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}