# @nuxtjs/axios

> Secure and easy Axios integration with Nuxt.js

Latest version **5.13.6** (published 2021-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nuxtjs/axios
pnpm add @nuxtjs/axios
yarn add @nuxtjs/axios
bun add @nuxtjs/axios
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.13.6 |
| Published | 2021-06-02 |
| First published | 2017-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1186 |
| Maintainers | clarkdo, pi0, atinux, alexchopin |

## Links

- npm: https://www.npmjs.com/package/@nuxtjs/axios
- Repository: https://github.com/nuxt-community/axios-module
- Homepage: https://github.com/nuxt-community/axios-module#readme
- Issues: https://github.com/nuxt-community/axios-module/issues
- npm.io page: https://npm.io/package/@nuxtjs/axios

## Dependencies (5)

- [defu](https://npm.io/package/defu.md) ^5.0.0
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [consola](https://npm.io/package/consola.md) ^2.15.3
- [axios-retry](https://npm.io/package/axios-retry.md) ^3.1.9
- [@nuxtjs/proxy](https://npm.io/package/@nuxtjs/proxy.md) ^2.1.0

## Recent versions

- 5.13.6 (latest) — 2021-06-02
- 5.13.5 — 2021-05-26
- 5.13.4 — 2021-05-18
- 5.13.3 — 2021-05-17
- 5.13.2 — 2021-05-17
- 5.13.1 — 2021-02-08
- 5.13.0 — 2021-02-01
- 5.12.5 — 2021-01-04
- 5.12.4 — 2020-12-14
- 5.12.3 — 2020-11-30
- 5.12.2 — 2020-08-25
- 5.12.1 — 2020-08-05
- 5.12.0 — 2020-07-10
- 5.11.0 — 2020-06-05
- 5.10.3 — 2020-04-30
- … 71 more at https://npm.io/package/@nuxtjs/axios/versions

## README

[![@nuxtjs/axios](https://axios.nuxtjs.org/preview.png)](https://axios.nuxtjs.org)

# @nuxtjs/axios

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]

> Secure and easy [Axios](https://github.com/axios/axios) integration for [Nuxt](https://nuxtjs.org).

- [✨ &nbsp;Release Notes](https://axios.nuxtjs.org/releases)
- [📖 &nbsp;Documentation](https://axios.nuxtjs.org)

## Features

- Automatically set base URL for client & server side
- Exposes `setToken` function to `$axios` so we can easily and globally set authentication tokens
- Automatically enables `withCredentials` when requesting to base URL
- Proxy request headers in SSR
- Fetch Style requests
- Integrated with Nuxt progress bar
- Integrated with Proxy Module
- Auto retry requests with axios-retry

[📖 &nbsp;Read more](https://axios.nuxtjs.org)

## Contributing

1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Start development server using `npm run dev`

## 📑 License

[MIT License](./LICENSE)

Copyright (c) Nuxt Community

<!-- Badges -->
<!-- Badges -->
[npm-version-src]: https://flat.badgen.net/npm/v/@nuxtjs/axios
[npm-version-href]: https://npmjs.com/package/@nuxtjs/axios

[npm-downloads-src]: https://flat.badgen.net/npm/dm/@nuxtjs/axios
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/axios

[github-actions-ci-src]: https://github.com/nuxt-community/axios-module/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/nuxt-community/axios-module/actions?query=workflow%3Aci

[codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt-community/axios-module
[codecov-href]: https://codecov.io/gh/nuxt-community/axios-module

[license-src]: https://img.shields.io/npm/l/@nuxtjs/axios.svg
[license-href]: https://npmjs.com/package/@nuxtjs/axios

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