@vercel/fetch
    TypeScript icon, indicating that this package has built-in type declarations

    6.1.1 • Public • Published

    @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:

    Name Value
    maxSockets 200
    maxFreeSockets 20
    timeout 60000
    freeSocketKeepAliveTimeout 30000

    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 peerDep node-fetch.

    Keywords

    none

    Install

    npm i @vercel/fetch

    DownloadsWeekly Downloads

    33,211

    Version

    6.1.1

    License

    MIT

    Unpacked Size

    11.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • crowterli
    • gsoltis
    • schlez
    • epallerols
    • domysee
    • nwienert
    • arbw
    • gudmundur
    • marcgreenstock
    • stephdietz
    • vvo
    • falcoagustin
    • nabsul
    • bmealey
    • brethudson
    • maedahbatool
    • matt.straka
    • jasongullickson
    • f3d0r
    • gaspar09
    • jtaylor0196
    • pieparker
    • kelly
    • dferber90
    • healeycodes
    • broph123
    • codybrouwers
    • ebb-tide
    • gdborton
    • msimulcik
    • jeffreyarneson
    • jaredpalmer
    • kikobeats
    • domeccleston
    • nutlope
    • hungrybearstudio
    • codetaromiura
    • mattcleg
    • gkaragkiaouris
    • geovanisouza92
    • dglsparsons
    • lostinpatterns
    • pralhad-vercel
    • vercel-release-bot
    • williamli
    • southpolesteve
    • goncy
    • chibicode
    • ijjk
    • andybitz
    • iamevilrabbit
    • joecohens
    • tootallnate
    • styfle
    • zeit-bot
    • quietshu
    • hankvercel
    • mglagola
    • javivelasco
    • igorklopov
    • paco
    • dav-is
    • timer
    • lucleray
    • leerobinson
    • matheuss
    • nkzawa
    • anatrajkovska
    • timneutkens
    • elsigh
    • cl3arglass
    • samsisle
    • chriswdmr
    • rizbizkits
    • ernestd
    • ismaelrumzan
    • jhoch
    • mrmckeb
    • kuvos
    • creationix
    • rauchg
    • huozhi
    • aadityajshah
    • cmvnk
    • lfades
    • paulogdm
    • ktcarter
    • okbel
    • padmaia
    • msweeneydev
    • delba
    • catsaremlg
    • steventey
    • sokra
    • gsandhu
    • dbredvick
    • kdy1