0.0.2 • Published 1 year ago

@andrei-markeev/axios-mini v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

axios-mini

Minimalistic Axios-like HTTP client with zero dependencies.

Installation

npm i @andrei-markeev/axios-mini

Usage

import axios from "@andrei-markeev/axios-mini"

const response = await axios.get("https://google.com");
if (response.status >= 400)
    console.error("Error!", response);

Note: Unlike axios, axios-mini doesn't throw error in case of errorous response code.