{"_id":"@1-week/vue-use-axios","_rev":"1-65a9c2ff9ac1b7ed7f2326c1c1b71abe","name":"@1-week/vue-use-axios","dist-tags":{"latest":"0.2.16"},"versions":{"0.2.12":{"name":"@1-week/vue-use-axios","description":"Use Axios With Composition API Easily.","version":"0.2.12","main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","unpkg":"lib/index.umd.min.js","jsdelivr":"lib/index.umd.min.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","axios","composition-api","utilities"],"author":{"name":"1-week","email":"https://github.com/1-week"},"license":"MIT","sideEffects":false,"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"peerDependencies":{"@vue/composition-api":"^1.2.4","axios":"^0.21.0","vue":"^2.6.14 || ^3.2.0"},"dependencies":{"@vue/composition-api":"^1.2.4","axios":"^0.24.0","lodash.debounce":"^4.0.8","lodash.throttle":"^4.1.1","vue-demi":"0.10.0"},"devDependencies":{"@types/lodash.debounce":"^4.0.6","@types/lodash.throttle":"^4.1.6","@vue/compiler-sfc":"^3.2.20","vue":"^3.2.20","vue2":"npm:vue@2"},"gitHead":"9836dd8c84c744557d4e74173804c40f824bd2d4","bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"_id":"@1-week/vue-use-axios@0.2.12","_nodeVersion":"14.20.1","_npmVersion":"lerna/3.22.1/node@v14.20.1+x64 (darwin)","dist":{"integrity":"sha512-CT1rJHPmXa91Rz0vDBcUfhU+sJlLQ7y4Ep7BVwUZnNEBIDQK46ZYkpGl7itWVM2mE0QndSLW7VHTZNSKCzS3eA==","shasum":"4593caf506ad4e744e0bae921d96934637909607","tarball":"https://registry.npmjs.org/@1-week/vue-use-axios/-/vue-use-axios-0.2.12.tgz","fileCount":3,"unpackedSize":3061,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7ZfPUdrX4mqkxbYHuStaFObQ4u3N+tEPA1jkRScCqLwIgN98X3pUDPzjI9+N3HTCcHZhRP/zT+U1qasfW8GJlODs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvUmQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqmkg//WLHlRpBpc+90zgNUXgk75+hIUgN55Y2kXpHvsxrJxhayc3wo\r\nkQ/U+zLh/dhRWdIQTbGMxeatDcGW71Z9b2wL8V32D+94Ev3AbBjamLMZ6Gv2\r\ncWWUAt9bJXcbIPH1l0yttnXD/EeUxVkZhfvuFI9pkKPVQ14ZOFsjUZGFpyOF\r\nTMNX7Sa3+WE2h9QlDsuVPFx2C3SXlvrBYTay3JNHbXNH81VFZGyM+Q3rg2gk\r\nThKQmMF6AHrGpGi+NnUPk5/xRo2Q2hpf0qs7bnbZ+o7o0EywZHhrsa1aZJsI\r\nm7vcYiFVIxv5z+UNnZ0TCrpSLtRM+HEQZiM68b1GaZyYm6QLRQVj0ZnTbZx8\r\n4J+mgYzaOPTalBUxEysQuE7QNPFQogMsdinvrDRzSZJYa2XgGOd/RUcwFBnU\r\nWwpCzH18NgebdKpVUMh5YblZda4YjWwqt4enJmomQLxTSsn1zZB4QLAha5w9\r\nOZnEsKCY6k6879Qh83u4OSMJYKCMwB0eWFEQj/TynXZAFD66/oyp8yW2VOxF\r\nf3+nHzoot8biyV9OvzRXoGweVYg80NWqELTqDa2hQ95l9H6zhztKBgffFOZl\r\nBkhGUyV+6oCZ4kMRhcHaxEcKPl/eXM294vy6Fby9BprWplIToabbOXBDSNN9\r\nOv7ShswmuVPxcygDAUqVT0NzfxAAGeTkYWk=\r\n=3b1L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"1-week","email":"bayeszou@gmail.com"},"directories":{},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-use-axios_0.2.12_1673349520824_0.8477278107268515"},"_hasShrinkwrap":false},"0.2.16":{"name":"@1-week/vue-use-axios","description":"Use Axios With Composition API Easily.","version":"0.2.16","main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","unpkg":"lib/index.umd.min.js","jsdelivr":"lib/index.umd.min.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","axios","composition-api","utilities"],"author":{"name":"1-week","email":"https://github.com/1-week"},"license":"MIT","sideEffects":false,"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"peerDependencies":{"@vue/composition-api":"^1.2.4","axios":"^0.21.0","vue":"^2.6.14 || ^3.2.0"},"dependencies":{"@vue/composition-api":"^1.2.4","axios":"^0.24.0","lodash.debounce":"^4.0.8","lodash.throttle":"^4.1.1","vue-demi":"0.10.0"},"devDependencies":{"@types/lodash.debounce":"^4.0.6","@types/lodash.throttle":"^4.1.6","@vue/compiler-sfc":"^3.2.20","vue":"^3.2.20","vue2":"npm:vue@2"},"gitHead":"4a0fac1bc6438b15a38aea9b28bad31c7fca69ec","bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"_id":"@1-week/vue-use-axios@0.2.16","_nodeVersion":"18.17.1","_npmVersion":"lerna/3.22.1/node@v18.17.1+arm64 (darwin)","dist":{"integrity":"sha512-35ZQkXgDfQT0oj5+a3sDy/na/oW8QzOxTqXmtGrgA32wu6WZId5MQrzoSTs6TYvWBeQ9p2SRAFJQw42Uq25bRw==","shasum":"22757fa203be62290a489717c666c8854a83ce95","tarball":"https://registry.npmjs.org/@1-week/vue-use-axios/-/vue-use-axios-0.2.16.tgz","fileCount":8,"unpackedSize":10806,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5EyQ+pb8osA8HU0aek1lJ72WCEqEzSSqrKVblQFVwnwIhANv3j7PVzi8VfHxM4zDIoPO5eZD5rTZ5w/n/qLkOW3Ty"}]},"_npmUser":{"name":"1-week","email":"bayeszou@gmail.com"},"directories":{},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-use-axios_0.2.16_1694069502111_0.19395631413140424"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-10T11:18:40.763Z","0.2.12":"2023-01-10T11:18:40.959Z","modified":"2023-09-07T06:51:42.573Z","0.2.16":"2023-09-07T06:51:42.365Z"},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"description":"Use Axios With Composition API Easily.","homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","axios","composition-api","utilities"],"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"author":{"name":"1-week","email":"https://github.com/1-week"},"bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"license":"MIT","readme":"# @vueblocks/vue-use-axios\n\n> Use Axios With Composition API Easily.\n\n## Install\n\n```bash\nyarn add @vueblocks/vue-use-axios\n```\n\n## Usage\n\n`useAxios` is a wrapper of Axios\n\n```js\nimport { useAxios } from '@vueblocks/vue-use-axios'\n\nexport default {\n  ...\n  setup () {\n    const url = 'https://api.coindesk.com/v1/bpi/currentprice.json'\n\n    const { refetch, data } = useAxios(url)\n\n    const fetchBitcoinPrice = () => {\n      setInterval(() => {\n        refetch()\n      }, 20000)\n    }\n\n    return {\n      data,\n      fetchBitcoinPrice\n    }\n  }\n  ...\n}\n```\n\n## License\n\nMIT [@xiaoluoboding](https://github.com/xiaoluoboding)\n","readmeFilename":"README.md"}