Introduction
@zimic/fetch is a minimal (~2 kB minified gzipped) and type-safe fetch-like API client.
Highlights
-
⚡ Type-safe
fetchUse your
@zimic/httpschema to create a type-safefetch-like API client and have your requests and responses fully typed by default. -
✨ Zero dependencies
@zimic/fetchhas no external dependencies, making it a lightweight and fast alternative to other HTTP clients. -
💪 Developer experience
Define default options to apply to your requests, such as a base URL, headers, search parameters, and more. Inspect and modify requests and responses using
onRequestandonResponselisteners.
Learn more: