@dissociating/req
v0.1.0-rc2
Published
Syntax sugar for fetch()
Downloads
1
Readme
-/req
tiny fetch wrapper for deno, node, and the browser
history
- originally inspired by centra (
node:http
,node:https
) - forked as @aero/centra to add bonus features, types, and cleanup some code
- rewritten as @aero/http with
undici
because it's faster and has a nicer API - rewritten now as
-/req
in deno/ts using nativefetch
features
- lightweight:
~500
loc2
lightweight dependencies:deno_std/encoding/base64
for basic authunjs/pathe
as a lighter drop-in fornode:path
- composable
- extendable
- augments types of native
fetch
(e.g. allows type parameterres.json<T>()
), but does not pollute the global namespace - consistent, strongly typed api