🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

http-fetch-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-fetch-wrapper

Http client wrapper around fetch

1.0.3
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

HTTP Fetch Wrapper

Http client wrapper around fetch

Usage

import { API } from 'http-fetch-wrapper';

const api = new API({
  baseURL: 'http://localhost:3000',
});

const data = await api.get('/animals');

Response

export interface APIResponse<DataType = any> {
  data: DataType,
  status: number,
  raw?: Response,
  type?: string,
}

Keywords

api

FAQs

Package last updated on 28 Sep 2022

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