@zeit/fetch
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

@zeit/fetch

Build Status

Opinionated fetch optimized for use inside microservices. Bundles:

It automatically configures an agent via agentkeepalive, if not provided, with the following settings:

Name Value
maxSockets 200
maxFreeSockets 20
timeout 60000
freeSocketKeepAliveTimeout 30000

How to use

const fetch = require('@zeit/fetch')(require('some-fetch-implementation'))

If no fetch implementation is supplied, it will attempt to use peerDep node-fetch.

Readme

Keywords

none

Package Sidebar

Install

npm i @zeit/fetch

Weekly Downloads

76,952

Version

6.0.0

License

MIT

Unpacked Size

9.76 kB

Total Files

8

Last publish

Collaborators

  • gdborton
  • matheuss
  • matt.straka
  • nick.tracey
  • zeit-bot
  • vercel-release-bot