@jswork/next-spider-fetch

1.0.13 • Public • Published

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

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.

Dependencies (8)

Dev Dependencies (16)

Package Sidebar

Install

npm i @jswork/next-spider-fetch

Weekly Downloads

30

Version

1.0.13

License

MIT

Unpacked Size

6.12 kB

Total Files

5

Last publish

Collaborators

  • afeiship