0.1.0 ā€¢ Published 4 years ago

avarice v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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");
0.1.0

4 years ago

0.0.0

5 years ago