axios-curl-middleware

1.0.1 • Public • Published

Axios Curl Middleware

yarn add axios-curl-middleware

 
import axios from 'axios';
import axiosCurl from 'axios-curl-middleware';
axiosCurl(axios);
 
axios.get('https://dog.ceo/api/breeds/image/random?test=123132')
/*
 
curl -X get -H 'accept: application/json, text/plain, */*' 'http://dog.ceo:80/api/breeds/image/random?test=123132'
 
*/
 

axiosCurl(axios, [{ log }])

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i axios-curl-middleware

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.57 kB

Total Files

4

Last publish

Collaborators

  • mikeljames