Gathering detailed insights and metrics for vue-axios-hooks
Gathering detailed insights and metrics for vue-axios-hooks
Gathering detailed insights and metrics for vue-axios-hooks
Gathering detailed insights and metrics for vue-axios-hooks
npm install vue-axios-hooks
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
10 Stars
26 Commits
4 Forks
21 Branches
1 Contributors
Updated on 30 Jan 2024
JavaScript (53.21%)
Vue (31.61%)
HTML (15.18%)
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
2,200%
46
Compared to previous week
Last month
742.9%
59
Compared to previous month
Last year
-45.5%
204
Compared to previous year
Vue3 hooks for axios
npm install axios vue-axios-hooks
1<script> 2import useAxios from 'vue-axios-hooks' 3 4export default { 5 setup () { 6 const { refetch, loading, data, cancel, error } = useAxios({ 7 url: 'https://reqres.in/api/users?delay=1' 8 }) 9 10 refetch() 11 12 return { 13 loading, 14 refetch, 15 data, 16 cancel, 17 error 18 } 19 } 20} 21</script>
1<!-- App.vue --> 2<script> 3import Axios from 'axios' 4import { useConfigure } from 'vue-axios-hooks' 5 6export default { 7 setup () { 8 const axios = Axios.create({ 9 baseURL: 'https://reqres.in/api' 10 }) 11 12 axios.interceptors.response.use( 13 (res) => { 14 return res.data 15 } 16 ) 17 useConfigure({ axios }) 18 } 19} 20</script>
If options.debounce
is set, requests except for the last one within the debounce interval will be dropped.
1const { refetch, loading, data } = useAxios({
2 url: 'https://reqres.in/api/users?delay=1'
3}, {
4 debounce: 300
5})
If options.throttle
is set, the request will be triggered once maximum within the throttle interval.
1const { refetch, loading, data } = useAxios({
2 url: 'https://reqres.in/api/users?delay=1'
3}, {
4 throttle: 1000
5})
debounce
andthrottle
can only be set to one
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
86 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More