Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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

  • 7.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
162K
decreased by-19.43%
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 12 Feb 2022

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