1.0.13 • Published 2 years ago

@jswork/next-spider-fetch v1.0.13

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

next-spider-fetch

Fetch special for spider.

version license size download

installation

npm install -S @jswork/next-spider-fetch

usage

import '@jswork/next-spider-fetch';

nx.spiderFetch('https://api.github.com/users/afeiship')
  .then(res=>res.json())
  .then(res=>{
    console.log(res);
});

options

nametypedescription
timeoutNumberTimeout for fetch.
delayNumberRequest with delay.
proxyStringSet proxy for request.
debugBooleanIf debug the options.

license

Code released under the MIT license.