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

1.0.8 • Public • Published

Axios-pool

Install

npm install @coxy/axios-pool

Create pool

import { createAxiosPool } from '@coxy/axios-pool';

... or using CommonJS syntax:

const { createAxiosPool } = require('@coxy/axios-pool');

Params

value type default value
sendAll boolean true
timeout number 0
...instances AxiosInstance or string
const instance = axios.create({ baseUrl: 'https://yahoo.com' })
const pool = createAxiosPool({sendAll: false}, 'https://google.com', instance);

const { data } = await pool.get('/')

console.log(data)

Readme

Keywords

none

Package Sidebar

Install

npm i @coxy/axios-pool

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

12.2 kB

Total Files

9

Last publish

Collaborators

  • dsshard