Home

Awesome

<h1 align="center" title="fetch-extras"> <img src="media/logo.jpg" alt="fetch-extras logo"> </h1>

Useful utilities for working with Fetch

[!WARNING] This package is still a work in progress.

For more features and conveniences on top of Fetch, check out my ky package.

Install

npm install fetch-extras

Usage

import {throwIfHttpError} from 'fetch-extras';

const response = await throwIfHttpError(fetch('/api'));

API

See the types for now.

Related