@dissociating/req
v0.1.0-rc2
Published
Syntax sugar for fetch()
Downloads
20
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
undicibecause it's faster and has a nicer API - rewritten now as
-/reqin deno/ts using nativefetch
features
- lightweight:
~500loc2lightweight dependencies:deno_std/encoding/base64for basic authunjs/patheas 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
