0.1.0 ā¢ Published 4 years ago
avarice v0.1.0
Avarice
š Yet another HTTP client based on Fetch.
Installation
yarn add avarice
Usage
import { http } from "avarice";
const result = await http.get("/api/posts");
import { createHTTPClient } from "avarice";
const http = createHTTPClient({
middlewares: [
next => (endpoint, options) => {
return next("/api/" + endpoint, options);
},
],
});
const result = await http.get("posts");