https://github.com/hyper63/hyperfetch
hyperFetch is a fetch function with exponential backoff
https://github.com/hyper63/hyperfetch
Last synced: about 1 year ago
JSON representation
hyperFetch is a fetch function with exponential backoff
- Host: GitHub
- URL: https://github.com/hyper63/hyperfetch
- Owner: hyper63
- Created: 2024-12-17T21:11:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-17T23:33:30.000Z (over 1 year ago)
- Last Synced: 2025-03-10T03:09:40.128Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hyperFetch
hyperFetch is a fetch function with exponential backoff
## Usage
```js
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)
}
}
```