0.0.2 • Published 3 years ago

@geniucode/multi-axios v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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
0.0.2

3 years ago

0.0.1

3 years ago