# chad-fetch

> A **Giga Chad** version of **fetch**

Latest version **1.0.6** (published 2022-07-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install chad-fetch
pnpm add chad-fetch
yarn add chad-fetch
bun add chad-fetch
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-07-25 |
| First published | 2022-07-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Angel Johank |
| Maintainers | angeljohank |
| Keywords | http client, http, fetch, browser |

## Links

- npm: https://www.npmjs.com/package/chad-fetch
- Repository: https://github.com/AngelJohank/rest
- Homepage: https://github.com/AngelJohank/rest#readme
- Issues: https://github.com/AngelJohank/rest/issues
- npm.io page: https://npm.io/package/chad-fetch

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2022-07-25
- 1.0.5 — 2022-07-25
- 1.0.4 — 2022-07-24
- 1.0.3 — 2022-07-24
- 1.0.2 — 2022-07-23
- 1.0.1 — 2022-07-23
- 1.0.0 — 2022-07-23

## README

# Chad Fetch [![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?style=flat-square)](https://github.com/AngelJohank/chad-fetch/blob/main/LICENCE) ![Code Coverage](https://img.shields.io/badge/coverage-100%25-green/?style=flat-square)

A **tiny** version of **fetch** for the browser (not a pollyfill)

![Logo](https://cdn3.emoji.gg/emojis/8748_gigachad.png)

## Installation

```bash
  npm install chad-fetch
```

## Usage

```typescript
import fetch from 'chad-fetch'

// fetch.get(url, queryParams?) returns T
fetch
  .get<T>('https://rickandmortyapi.com/api/character', { page: 1 })
  .then(res => console.log(res))

// fetch.post(url, data) returns T | only uploads objects
fetch
  .post<T>('https://jsonplaceholder.typicode.com/posts', {
    title: 'foo',
    body: 'bar',
    userId: 1,
  })
  .then(res => console.log(res))
```

---
_Source: https://npm.io/package/chad-fetch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
