0.3.0 • Published 1 year ago

sasaxios v0.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

sasaxios

sasaxios is a wrapper for fetch(), but provides an axios-like interface.

This package is not production-ready so that should be used with caution.

Install

$ npm install sasaxios

or

$ yarn add sasaxios

Usage

import sasaxios from "sasaxios";

const axios = sasaxios.create({
  baseURL: "https://pokeapi.co/api/v2",
  withCredentials: false,
});

// request to https://pokeapi.co/api/v2/pokemon?limit=5&offset=10
axios.get("pokemon", { params: { limit: 5, offset: 10 } }).then((response) => {
  console.log(response.data.results[0].name); // metapod
});
0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago