# @jswork/fetch

> Get standard fetch from any environment.

Latest version **1.0.18** (published 2026-05-04) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.18 |
| Published | 2026-05-04 |
| First published | 2023-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | afeiship, yujiao.luo |

## Links

- npm: https://www.npmjs.com/package/@jswork/fetch
- Homepage: https://js.work
- npm.io page: https://npm.io/package/@jswork/fetch

## Recent versions

- 1.0.18 (latest) — 2026-05-04
- 1.0.16 — 2025-05-24
- 1.0.15 — 2024-09-10
- 1.0.14 — 2024-08-30
- 1.0.13 — 2023-09-15
- 1.0.12 — 2023-05-24
- 1.0.11 — 2023-04-20
- 1.0.10 — 2023-04-11
- 1.0.9 — 2023-04-10
- 1.0.8 — 2023-04-08
- 1.0.7 — 2023-04-07
- 1.0.6 — 2023-04-07
- 1.0.5 — 2023-04-07
- 1.0.4 — 2023-04-07
- 1.0.3 — 2023-04-07
- … 3 more at https://npm.io/package/@jswork/fetch/versions

## README

# fetch
> Get standard fetch from any environment.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
# browser + bun
yarn add @jswork/fetch

# nodejs
yarn add @jswork/fetch node-fetch@2.6.7
```

## usage
> Usage1: import package.
```js
import fetch from '@jswork/fetch';

// as usually
const res = await fetch('https://api.github.com/users/afeiship');
console.log(res);
```

> Usage2: Or import to global(recommend)
```js
import '@jswork/fetch';

const res = await fetch('https://httpbin.org/get').then(r=>r.json())
console.log(res);
```

## license
Code released under [the MIT license](https://github.com/afeiship/fetch/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/fetch
[version-url]: https://npmjs.org/package/@jswork/fetch

[license-image]: https://img.shields.io/npm/l/@jswork/fetch
[license-url]: https://github.com/afeiship/fetch/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/fetch
[size-url]: https://github.com/afeiship/fetch/blob/master/dist/fetch.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/fetch
[download-url]: https://www.npmjs.com/package/@jswork/fetch

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