Socket
Socket
Sign inDemoInstall

@fortaine/fetch

Package Overview
Dependencies
30
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fortaine/fetch

Opinionated `fetch` optimized for use inside microservices


Version published
Maintainers
1
Created

Readme

Source

@vercel/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

JavaScript

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

TypeScript

import createFetch from '@vercel/fetch';
import * as fetch from 'some-fetch-implementation';
const fetch = createFetch(fetch);

If no fetch implementation is supplied, it will attempt to use native fetch (if available) or peerDep node-fetch as fallback.

FAQs

Last updated on 05 Mar 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc