6.0.0 • Published 2 years ago

domainpool v6.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
2 years ago

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 来进行安装
6.0.0

2 years ago

5.9.0

2 years ago

5.8.0

2 years ago

5.7.0

2 years ago

5.6.0

2 years ago

5.5.0

2 years ago

5.4.0

2 years ago

5.3.0

2 years ago

5.2.0

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

4.0.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago