1.0.8 • Published 2 years ago

@coxy/axios-pool v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

valuetypedefault value
sendAllbooleantrue
timeoutnumber0
...instancesAxiosInstance 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)
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago