An open API service indexing awesome lists of open source software.

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

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)
```