
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
@vueblocks/vue-use-axios
Advanced tools
Use Axios With Composition API Easily.
yarn add @vueblocks/vue-use-axios
useAxios
is a wrapper of Axios
import { useAxios } from '@vueblocks/vue-use-axios'
export default {
...
setup () {
const url = 'https://api.coindesk.com/v1/bpi/currentprice.json'
const { refetch, data } = useAxios(url)
const fetchBitcoinPrice = () => {
setInterval(() => {
refetch()
}, 20000)
}
return {
data,
fetchBitcoinPrice
}
}
...
}
MIT @xiaoluoboding
FAQs
Use Axios With Composition API Easily.
The npm package @vueblocks/vue-use-axios receives a total of 1 weekly downloads. As such, @vueblocks/vue-use-axios popularity was classified as not popular.
We found that @vueblocks/vue-use-axios demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.