# @gourmet/ufetch

> A tiny HTTP client library that provides fetch-like API.

Latest version **0.4.0** (published 2020-01-28) · 0 weekly downloads

## Install

```sh
npm install @gourmet/ufetch
pnpm add @gourmet/ufetch
yarn add @gourmet/ufetch
bun add @gourmet/ufetch
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2020-01-28 |
| First published | 2019-12-24 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gourmet |

## Links

- npm: https://www.npmjs.com/package/@gourmet/ufetch
- npm.io page: https://npm.io/package/@gourmet/ufetch

## Recent versions

- 0.4.0 (latest) — 2020-01-28
- 0.2.0 — 2019-12-24
- 0.1.0 — 2019-12-24

## README

# @gourmet/ufetch

> A tiny, zero-dependency fetch-like library for implementing higher level Rest API clients.

Based on `node-fetch`: https://github.com/bitinn/node-fetch

Key differences from `node-fetch` are:
 - Much simpler API without the spec-compliance.
 - Use KeepAlive agents for both http and https by default.
 - Pass-through all unknown options to the underlying `http.request()`.
 - No sub-objects such as`Body`, `Request`, `Response` and `Headers`.
 - No binary body support such as `Blob` and `ArrayBuffer`.
 - No stream support.
 - No `multipart/form-data` / `FormData` support (but you can use `application/x-www-form-urlencoded`).
 - No compression encoding.
 - No abort signal.
 - No auto-setting of `Content-Type` based on `body` type.
 - Only UTF-8 encoding is supported for the string body.
 - No body size limit.
 - No `res.clone()`.
 - Only `get` & `has` in `res.headers`.

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