Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 291 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 291 Bytes

hyperFetch

hyperFetch is a fetch function with exponential backoff

Usage

import { fetch } from '@hyper63/fetch'

async function main() {
  const result = await fetch('https://example.com')
  if (result.ok) {
    const body = await result.json()
    console.log(body)
  }
}