https://github.com/olsonpm/make-axios-behave-like-curl
https://github.com/olsonpm/make-axios-behave-like-curl
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/olsonpm/make-axios-behave-like-curl
- Owner: olsonpm
- Created: 2020-04-28T23:35:37.000Z (about 6 years ago)
- Default Branch: dev
- Last Pushed: 2020-04-29T00:24:47.000Z (about 6 years ago)
- Last Synced: 2025-10-26T23:34:18.891Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## What is this library
it is a function which creates a new axios instance that is intended to behave
like curl
## Why create it ?
I use curl a lot and cause bugs when using axios because I expect it to behave
the same. Normally this is due to default headers added, however there may be
additional behavior that axios follows which curl doesn't since curl is more
bare bones.
## How to use it ?
```
import makeAxiosBehaveLikeCurl from 'make-axios-behave-like-curl'
import axios from 'axios'
// curl is a new instance of axios
const curl = makeAxiosBehaveLikeCurl(axios)
```