@turist/fetch
Opinionated `fetch` optimized for use inside microservices
Last updated 6 years ago by jamo .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @turist/fetch 
SYNC missed versions from official npm registry.

@turist/fetch

Opinionated fetch optimized for use inside microservices.

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

Name Value
maxSockets 50
maxFreeSockets 20
timeout 60000
freeSocketKeepAliveTimeout 30000

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.

Current Tags

  • 7.2.0                                ...           latest (4 years ago)

12 Versions

  • 7.2.0                                ...           4 years ago
  • 7.1.7                                ...           6 years ago
  • 7.1.6                                ...           6 years ago
  • 7.1.5                                ...           6 years ago
  • 7.1.4                                ...           6 years ago
  • 7.1.3                                ...           6 years ago
  • 7.1.2                                ...           6 years ago
  • 7.1.1                                ...           6 years ago
  • 7.1.0                                ...           6 years ago
  • 7.0.0                                ...           6 years ago
  • 6.3.1                                ...           6 years ago
  • 6.3.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (16)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |