@geniucode/multi-axios
v0.0.2
Published
This package supports a better way to deal with axios module by giving the ability to build and use multiple axios instances
Downloads
106
Readme
Multi Axios
This package supports a better way to deal with axios module by giving the ability to build and use multiple axios instances
Usage
Install using:
npm i --save @geniucode/multi-axios
import { __axios } from '@geniucode/multi-axios';
const testAxios = __axios('https://url...', { 'header-key-1': 'value'}).init();
// get method
const items = await testAxios.get('/do');
// post method
await testAxios.post('/', {
... // here are the body params
});
Dependencies
- axios