@turist/fetch
Opinionated `fetch` optimized for use inside microservices
Last updated 5 years ago by olliv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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

  • 8.0.0-alpha.0                                ...           alpha (5 months ago)
  • 7.2.0                                ...           latest (5 years ago)

13 Versions

  • 8.0.0-alpha.0                                ...           5 months ago
  • 7.2.0                                ...           5 years ago
  • 7.1.7                                ...           6 years ago
  • 7.1.6                                ...           7 years ago
  • 7.1.5                                ...           7 years ago
  • 7.1.4                                ...           7 years ago
  • 7.1.3                                ...           7 years ago
  • 7.1.2                                ...           7 years ago
  • 7.1.1                                ...           7 years ago
  • 7.1.0                                ...           7 years ago
  • 7.0.0                                ...           7 years ago
  • 6.3.1                                ...           7 years ago
  • 6.3.0                                ...           7 years ago
Maintainers (2)
Downloads
Total 47
Today 0
This Week 1
This Month 33
Last Day 0
Last Week 25
Last Month 5
Dependencies (1)
Dev Dependencies (16)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE