New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

fetch-extras

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-extras

Useful utilities for working with Fetch

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
11K
16.84%
Maintainers
0
Weekly downloads
 
Created
Source

fetch-extras

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.

  • is-network-error - Check if a value is a Fetch network error

Keywords

fetch

FAQs

Package last updated on 17 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts