Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-axios

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-axios - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

package.json
{
"name": "vue-axios",
"version": "1.1.0",
"version": "1.1.1",
"description": "A small wrapper for integrating axios to Vuejs",

@@ -32,5 +32,3 @@ "main": "dist/vue-axios.min.js",

"gulp-uglifyjs": "^0.6.2"
},
"dependencies": {
}
}
# vue-axios
A small wrapper for integrating axios to Vuejs
## How to install:
### CommonJS:
```
npm install --save axios vue-axios
```
And in your entry file:
```
import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)
```
### Script:
Just add 3 script in order: `vue`, `axios` and `vue-axios` to your `document`.
## Usage:
This wrapper bind `axios` to var `Vue` or `this` if you're using single file component.
You can `axios` like this:
```
Vue.axios.get(api).then((response) => {
console.log(response.data)
})
this.axios.get(api).then((response) => {
console.log(response.data)
})
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc