Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuxt-community/axios-module
Secure and easy axios integration for Nuxt 2
https://github.com/nuxt-community/axios-module
api axios backend hacktoberfest interceptor nuxt nuxt-module proxy request ssr token
Last synced: 5 days ago
JSON representation
Secure and easy axios integration for Nuxt 2
- Host: GitHub
- URL: https://github.com/nuxt-community/axios-module
- Owner: nuxt-community
- License: mit
- Created: 2017-08-13T11:20:04.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T11:46:06.000Z (18 days ago)
- Last Synced: 2024-12-10T03:05:38.521Z (12 days ago)
- Topics: api, axios, backend, hacktoberfest, interceptor, nuxt, nuxt-module, proxy, request, ssr, token
- Language: JavaScript
- Homepage: https://axios.nuxtjs.org
- Size: 3.62 MB
- Stars: 1,193
- Watchers: 25
- Forks: 246
- Open Issues: 107
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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 2](https://nuxt.com).
- [✨ Release Notes](https://axios.nuxtjs.org/releases)
- [📖 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[📖 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
[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