avarice

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i avarice

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

8.64 kB

Total Files

7

Last publish

Collaborators

  • rev-hikari