1 | [![@nuxtjs/axios](https://axios.nuxtjs.org/preview.png)](https://axios.nuxtjs.org)
|
2 |
|
3 | # @nuxtjs/axios
|
4 |
|
5 | [![npm version][npm-version-src]][npm-version-href]
|
6 | [![npm downloads][npm-downloads-src]][npm-downloads-href]
|
7 | [![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
|
8 | [![Codecov][codecov-src]][codecov-href]
|
9 | [![License][license-src]][license-href]
|
10 |
|
11 | > Secure and easy [Axios](https://github.com/axios/axios) integration for [Nuxt](https://nuxtjs.org).
|
12 |
|
13 | - [✨ Release Notes](https://axios.nuxtjs.org/releases)
|
14 | - [📖 Documentation](https://axios.nuxtjs.org)
|
15 |
|
16 | ## Features
|
17 |
|
18 | - Automatically set base URL for client & server side
|
19 | - Exposes `setToken` function to `$axios` so we can easily and globally set authentication tokens
|
20 | - Automatically enables `withCredentials` when requesting to base URL
|
21 | - Proxy request headers in SSR
|
22 | - Fetch Style requests
|
23 | - Integrated with Nuxt progress bar
|
24 | - Integrated with Proxy Module
|
25 | - Auto retry requests with axios-retry
|
26 |
|
27 | [📖 Read more](https://axios.nuxtjs.org)
|
28 |
|
29 | ## Contributing
|
30 |
|
31 | 1. Clone this repository
|
32 | 2. Install dependencies using `yarn install` or `npm install`
|
33 | 3. Start development server using `npm run dev`
|
34 |
|
35 | ## 📑 License
|
36 |
|
37 | [MIT License](./LICENSE)
|
38 |
|
39 | Copyright (c) Nuxt Community
|
40 |
|
41 |
|
42 |
|
43 | [npm-version-src]: https://flat.badgen.net/npm/v/@nuxtjs/axios
|
44 | [npm-version-href]: https://npmjs.com/package/@nuxtjs/axios
|
45 |
|
46 | [npm-downloads-src]: https://flat.badgen.net/npm/dm/@nuxtjs/axios
|
47 | [npm-downloads-href]: https://npmjs.com/package/@nuxtjs/axios
|
48 |
|
49 | [github-actions-ci-src]: https://github.com/nuxt-community/axios-module/workflows/ci/badge.svg
|
50 | [github-actions-ci-href]: https://github.com/nuxt-community/axios-module/actions?query=workflow%3Aci
|
51 |
|
52 | [codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt-community/axios-module
|
53 | [codecov-href]: https://codecov.io/gh/nuxt-community/axios-module
|
54 |
|
55 | [license-src]: https://img.shields.io/npm/l/@nuxtjs/axios.svg
|
56 | [license-href]: https://npmjs.com/package/@nuxtjs/axios
|