# @jswork/fetch-mp

> Fetch for wechat mini program.

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

## Install

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

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2026-05-04 |
| First published | 2025-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 26.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | afeiship, yujiao.luo |
| Keywords | fetch-mp, fetch, wechat |

## Links

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

## Dependencies (2)

- [@types/wechat-miniprogram](https://npm.io/package/@types/wechat-miniprogram.md) ^3.4.8
- [@jswork/normalize-mina-options](https://npm.io/package/@jswork/normalize-mina-options.md) ^1.0.6

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2026-05-04
- 1.0.7 — 2025-10-24
- 1.0.6 — 2025-10-24
- 1.0.5 — 2025-07-03
- 1.0.3 — 2025-05-24
- 1.0.2 — 2025-05-24
- 1.0.1 — 2025-05-24

## README

# fetch-mp
> Fetch for wechat mini program.

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

## installation
```shell
yarn add @jswork/fetch-mp
```

## usage
```js
import fetchMp from '@jswork/fetch-mp';

fetchMp("https://api.github.com/users/afeiship")
  .then(r => r.json())
  .then(res => {
    console.log('res: ', res)
  })
```

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

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

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

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

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

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