# @vt7/fetch

> This is a wrapper axios plugin

Latest version **7.0.1** (published 2026-01-19) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.0.1 |
| Published | 2026-01-19 |
| First published | 2023-10-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 27.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | vt7 |

## Links

- npm: https://www.npmjs.com/package/@vt7/fetch
- Repository: https://github.com/vuthanhbayit/kit.git#main
- Homepage: https://github.com/vuthanhbayit/kit/tree/main/packages/fetch#readme
- Issues: https://github.com/vuthanhbayit/kit/issues
- npm.io page: https://npm.io/package/@vt7/fetch

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.5.1
- [@vt7/utils](https://npm.io/package/@vt7/utils.md) ^7.0.1

## Recent versions

- 7.0.1 (latest) — 2026-01-19
- 7.0.0 — 2026-01-17
- 6.6.0 — 2025-03-07
- 6.5.0 — 2025-02-27
- 6.4.1 — 2025-01-14
- 6.4.0 — 2024-12-19
- 6.3.0 — 2024-12-11
- 6.0.0 — 2024-05-22
- 5.3.1 — 2024-04-03
- 5.3.0 — 2024-02-20
- 5.2.1 — 2024-01-25
- 5.1.0 — 2023-12-11
- 5.0.4 — 2023-10-31
- 5.0.3 — 2023-10-31
- 5.0.2 — 2023-10-27
- … 4 more at https://npm.io/package/@vt7/fetch/versions

## README

# @vt7/fetch

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![Codecov][codecov-src]][codecov-href]

The `@vt7/fetch` package is a wrapper of the Axios package, it contains functions that make it easier to work with axios and easier to debug and cancel.

## Usage

Install package:

```sh
# npm
npm install @vt7/fetch

# yarn
yarn add @vt7/fetch

# pnpm
pnpm install @vt7/fetch

# bun
bun install @vt7/fetch
```

Import:

```js
// ESM
import { createFetch, createAxiosExtra, createAxiosDebug } from "@vt7/fetch";

const fetcher = createFetch({
    debug: true,
    debugError: true,
    baseUrl: 'https://api.example.com',
    // options axios
})

fetcher.$get('/api/lorem') // return response.data
```

## License

Made with 💛

Published under [MIT License](./LICENSE).

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@vt7/fetch?style=flat&colorA=18181B&colorB=F0DB4F
[npm-version-href]: https://npmjs.com/package/@vt7/fetch
[npm-downloads-src]: https://img.shields.io/npm/dm/@vt7/fetch?style=flat&colorA=18181B&colorB=F0DB4F
[npm-downloads-href]: https://npmjs.com/package/@vt7/fetch
[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/@vt7/fetch/main?style=flat&colorA=18181B&colorB=F0DB4F
[codecov-href]: https://codecov.io/gh/unjs/@vt7/fetch
[bundle-src]: https://img.shields.io/bundlephobia/minzip/@vt7/fetch?style=flat&colorA=18181B&colorB=F0DB4F
[bundle-href]: https://bundlephobia.com/result?p=@vt7/fetch

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