6.6.0 • Published 3 months ago

@vt7/fetch v6.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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.

6.6.0

3 months ago

6.5.0

4 months ago

6.4.1

5 months ago

6.4.0

6 months ago

6.3.0

6 months ago

6.0.0

1 year ago

5.3.1

1 year ago

5.3.0

1 year ago

5.2.1

1 year ago

5.1.0

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago