5.3.1 • Published 2 months ago

@vt7/fetch v5.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@vt7/fetch

npm version npm downloads bundle Codecov

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:

# npm
npm install @vt7/fetch

# yarn
yarn add @vt7/fetch

# pnpm
pnpm install @vt7/fetch

# bun
bun install @vt7/fetch

Import:

// 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.

5.3.1

2 months ago

5.3.0

3 months ago

5.2.1

4 months ago

5.1.0

5 months ago

5.0.4

7 months ago

5.0.3

7 months ago

5.0.2

7 months ago

5.0.1

7 months ago

5.0.0

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago