https://github.com/andrei-markeev/axios-mini
Minimalistic axios-like HTTP client for Node.js
https://github.com/andrei-markeev/axios-mini
axios nodejs
Last synced: about 1 month ago
JSON representation
Minimalistic axios-like HTTP client for Node.js
- Host: GitHub
- URL: https://github.com/andrei-markeev/axios-mini
- Owner: andrei-markeev
- Created: 2022-11-12T22:00:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T15:54:30.000Z (over 3 years ago)
- Last Synced: 2025-01-30T06:41:34.731Z (over 1 year ago)
- Topics: axios, nodejs
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## axios-mini
Minimalistic Axios-like HTTP client with zero dependencies.
### Installation
```
npm i @andrei-markeev/axios-mini
```
### Usage
```ts
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.