@feizheng/next-spider-fetch

1.2.0 • Public • Published

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

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.

/@feizheng/next-spider-fetch/

    Package Sidebar

    Install

    npm i @feizheng/next-spider-fetch

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    7.18 kB

    Total Files

    6

    Last publish

    Collaborators

    • afeiship