# domainpool

> ip域名池(非vue注入版本)

Latest version **6.0.0** (published 2019-09-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install domainpool
pnpm add domainpool
yarn add domainpool
bun add domainpool
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2019-09-17 |
| First published | 2019-09-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lscalm |
| Maintainers | lscalm |
| Keywords | domain, pool, domainpool, domainpool2 |

## Links

- npm: https://www.npmjs.com/package/domainpool
- npm.io page: https://npm.io/package/domainpool

## Recent versions

- 6.0.0 (latest) — 2019-09-17
- 5.9.0 — 2019-09-16
- 5.8.0 — 2019-09-16
- 5.7.0 — 2019-09-16
- 5.6.0 — 2019-09-16
- 5.5.0 — 2019-09-16
- 5.4.0 — 2019-09-16
- 5.3.0 — 2019-09-16
- 5.2.0 — 2019-09-16
- 5.1.0 — 2019-09-16
- 5.0.0 — 2019-09-16
- 4.0.0 — 2019-09-11
- 1.2.0 — 2019-09-10
- 1.1.0 — 2019-09-10
- 1.0.0 — 2019-09-10

## README

## ip域名池
> 简介：添加ip域名池可以防止api域名被封导致数据获取不到问题
> 原理：提供多个域名进行校验替换然后选择有效域名进行api请求


##### download
```
npm:
  npm i domainpool -S

yarn: 
  yarn add domainpool
```


##### usage
```
import axios from 'axios'
import $getEffectDomain from 'domainpool'

// 需校验域名
var arr = [] || ''

$getEffectDomain(axios, arr, function (effectUrl) {
  // effectUrl 为有效域名
})
```

##### ps
```
该插件是基于axios来进行域名替换的，所以需要下载axios，可以通过命令 npm i axios -S 或 yarn add axios 来进行安装
```

---
_Source: https://npm.io/package/domainpool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
