@turist/fetch
Opinionated `fetch` optimized for use inside microservices
Last updated 4 years ago by jamo .
MIT · Repository · 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

  • 7.2.0                                ...           latest (3 years ago)

12 Versions

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

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