🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

@zeit/fetch

Package Overview
Dependencies
Maintainers
56
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeit/fetch

Opinionated `fetch` optimized for use inside microservices

latest
Source
npmnpm
Version
6.0.0
Version published
Weekly downloads
40K
1.47%
Maintainers
56
Weekly downloads
 
Created
Source

@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:

NameValue
maxSockets200
maxFreeSockets20
timeout60000
freeSocketKeepAliveTimeout30000

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.

FAQs

Package last updated on 03 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts