0.1.0 • Published 6 months ago
@fuman/fetch v0.1.0
@fuman/fetch
no-bullshit minimal wrapper around window.fetch
that aims to improve dx
by adding commonly used features, while having low runtime overhead,
small bundle size and staying close to the web standards.
features
- no more
(await fetch(url)).json()
- justawait ffetch(url).json()
- sugar for common request body types (json, form, multipart)
- base url, base headers, etc.
- retries, timeouts, validation built in
- basic middlewares
- type-safe compatibility with popular parsing libraries (yup, zod, valibot, etc.)