A fetch plugin for Vue.js projects providing convenient methods ($get, $post, $fetch) via Vue.prototype or direct import. Version 2.0.9 is the latest stable release. It wraps the native fetch API with request/response interceptors, configurable default options, and async/await support. Compared to axios, it leverages the browser's built-in fetch rather than adding a separate HTTP client. Release cadence is irregular; last update was 2019. No TypeScript typings included.
npm install vue-fetch-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installing the plugin with Vue.use(), configuring options, and using the $get instance method.
Use direct import instead: import myFetch from 'vue-fetch-plugin'; myFetch.get(url)
Consider migrating to a modern alternative like axios or vue-axios with Vue 3.
Replace $http calls with $fetch, $get, or $post; or pin version to 1.x.
Explicitly JSON.stringify body for non-object payloads or set 'Content-Type' manually.
Ensure reqInterceptor, resFilter, resError always return their input or a new value.
Call Vue.use(VueFetchPlugin) before new Vue().
Use Vue.use() and call instance methods like this.$get().
Check the URL, ensure CORS headers on server, and verify credentials option.