1.0.13 • Published 2 years ago
@jswork/next-spider-fetch v1.0.13
next-spider-fetch
Fetch special for spider.
installation
npm install -S @jswork/next-spider-fetchusage
import '@jswork/next-spider-fetch';
nx.spiderFetch('https://api.github.com/users/afeiship')
.then(res=>res.json())
.then(res=>{
console.log(res);
});options
| name | type | description |
|---|---|---|
| timeout | Number | Timeout for fetch. |
| delay | Number | Request with delay. |
| proxy | String | Set proxy for request. |
| debug | Boolean | If debug the options. |
license
Code released under the MIT license.