@fuman/fetch
v0.0.4
Published
tiny wrapper over fetch
Downloads
680
Readme
@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.)