# @azury/fetch

> azury's fetch client

Latest version **0.7.0** (published 2023-06-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @azury/fetch
pnpm add @azury/fetch
yarn add @azury/fetch
bun add @azury/fetch
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2023-06-01 |
| First published | 2023-03-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Samuel Kopp |
| Maintainers | boywithkeyboard |

## Links

- npm: https://www.npmjs.com/package/@azury/fetch
- npm.io page: https://npm.io/package/@azury/fetch

## Recent versions

- 0.7.0 (latest) — 2023-06-01
- 0.6.0 — 2023-04-07
- 0.5.0 — 2023-04-07
- 0.4.0 — 2023-04-07
- 0.3.0 — 2023-04-07
- 0.2.0 — 2023-04-03
- 0.1.0 — 2023-03-17

## README

## fetch

### Setup

#### Deno

```ts
import fetch from 'https://deno.land/x/fetch_client@v0.6.0/mod.ts'
```

#### Node.js

```bash
npm i @azury/fetch
```

```ts
import fetch from '@azury/fetch'
```

### Usage

```ts
const client = new fetch()

// optionally, you can specify global headers and a base path
const client = new fetch({
  base: 'https://',
  headers: {
    authorization: 'bearer token'
  }
})

const { data, error, code, ... } = await client.get('example.com', { type: 'json' }) // fetches 'https://example.com' and parses the response body as json
```

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