1.2.0 • Published 4 years ago

@feizheng/next-spider-fetch v1.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

next-spider-fetch

Fetch special for spider.

version license size download

installation

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

usage

import '@feizheng/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.