A Vue.js plugin and AxiosRequest component that integrates Axios with Vue, providing a scoped-slot based API for async HTTP requests. The current stable version is 0.2.2. The package wraps the full Axios request lifecycle (loading, error, success) into a reusable component, reducing boilerplate for data fetching in Vue templates. It supports configurabe axios instances, lazy requests, pending delay, and transformData for response preprocessing. Compared to alternatives like vue-resource or vuex-axios, it offers a more declarative, template-oriented approach using slot props (data, isLoading, error). The library is lightweight, with no runtime dependencies beyond vue and axios, and it is released on a slow cadence (last update in 2018). Note that it only supports Vue 2 and is not compatible with Vue 3.
npm install vue-axios-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Vue app using vue-axios-client to make a GET request and display the result.
Use 'new VueAxiosClient({ axios })' instead of calling VueAxiosClient(axios).Upgrade to >=0.1.0 and follow the new import/usage pattern.
Use only with Vue 2 projects, or switch to an equivalent library for Vue 3 (e.g., vue-axios or vue-query).
Always pass the axios instance either globally via plugin options or locally via the 'axios' prop.
Use a valid HTML tag name or omit the prop (defaults to 'div').
Ensure you have version >=0.2.0 and use 'new VueAxiosClient({ axios })'.Use 'Vue.component('AxiosRequest', AxiosRequest)' after importing it, or register it locally in your component's 'components' option.Run 'npm install vue-axios-client' and check that your bundler (webpack, rollup) can resolve node_modules.
Switch to a Vue 3 compatible library, or downgrade to Vue 2.