Socket
Socket
Sign inDemoInstall

@turist/fetch

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turist/fetch

Opinionated `fetch` optimized for use inside microservices


Version published
Weekly downloads
270K
increased by1.45%
Maintainers
2
Weekly downloads
 
Created
Source

@turist/fetch

Opinionated fetch optimized for use inside microservices.

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

NameValue
maxSockets50
maxFreeSockets20
timeout60000
freeSocketKeepAliveTimeout30000

How to use

const fetch = require('@turist/fetch').default(require('some-fetch-implementation'))
import createFetch from '@turist/fetch';

const fetch = createFetch();

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

FAQs

Package last updated on 17 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc