1.0.8 • Published 4 months ago

@coxy/axios-pool v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months 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

4 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago