@geniucode/multi-axios
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @geniucode/multi-axios

Weekly Downloads

33

Version

0.0.2

License

ISC

Unpacked Size

9.08 kB

Total Files

7

Last publish

Collaborators

  • geniucode-dev