{"name":"@vueuse/core","version":"6.0.0-beta.2","description":"Collection of essential Vue Composition Utilities","keywords":["vue","vue-use","utils"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/vueuse/vueuse.git"},"funding":"https://github.com/sponsors/antfu","author":{"name":"Anthony Fu","email":"https://github.com/antfu"},"exports":{".":{"import":"./index.esm.js","require":"./index.cjs.js"},"./*":"./*"},"main":"./index.cjs.js","types":"./index.d.ts","module":"./index.esm.js","unpkg":"./index.iife.min.js","jsdelivr":"./index.iife.min.js","sideEffects":false,"bugs":{"url":"https://github.com/vueuse/vueuse/issues"},"homepage":"https://github.com/vueuse/vueuse#readme","dependencies":{"@vueuse/shared":"6.0.0-beta.2","vue-demi":"*"},"readme":"<p align=\"center\">\n<a href=\"https://github.com/vueuse/vueuse\"><img src=\"https://raw.githubusercontent.com/vueuse/vueuse/main/packages/public/logo-vertical.png\" alt=\"VueUse - Collection of essential Vue Composition Utilities\" width=\"300\"></a><br>\nCollection of essential Vue Composition Utilities\n</p>\n\n<p align=\"center\">\n<a href=\"https://www.npmjs.com/package/@vueuse/core\" target=\"__blank\"><img src=\"https://img.shields.io/npm/v/@vueuse/core?color=a1b858&label=\" alt=\"NPM version\"></a>\n<a href=\"https://www.npmjs.com/package/@vueuse/core\" target=\"__blank\"><img alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/@vueuse/core?color=50a36f&label=\"></a>\n<a href=\"https://vueuse.org\" target=\"__blank\"><img src=\"https://img.shields.io/static/v1?label=&message=docs%20%26%20demos&color=1e8a7a\" alt=\"Docs & Demos\"></a>\n<img alt=\"Function Count\" src=\"https://img.shields.io/badge/-135%20functions-13708a\">\n<br>\n<a href=\"https://github.com/vueuse/vueuse\" target=\"__blank\"><img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/vueuse/vueuse?style=social\"></a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'>\n  </a>\n</p>\n\n## 🚀 Features\n\n- 🎪 [**Interactive docs & demos**](https://vueuse.org)\n- 🕶 **Seamless migration**: Works for **both** Vue 3 and 2\n- ⚡ **Fully tree shakable**: Only take what you want, [bundle size](https://vueuse.org/export-size)\n- 🦾 **Type Strong**: Written in [Typescript](https://www.typescriptlang.org/), with [TS Docs](https://github.com/microsoft/tsdoc)\n- 🔋 **SSR Friendly**\n- 🌎 **No bundler required**: Usable via CDN\n- 🔩 **Flexible**: Configurable event filters and targets\n- 🔌 **Optional [Add-ons](https://vueuse.org/add-ons)**: Router, Firebase, RxJS, etc.\n\n## 🦄 Usage\n\n```ts\nimport { useMouse, usePreferredDark, useLocalStorage } from '@vueuse/core'\n\nexport default {\n  setup() {\n    // tracks mouse position\n    const { x, y } = useMouse()\n\n    // is user prefers dark theme\n    const isDark = usePreferredDark()\n\n    // persist state in localStorage\n    const store = useLocalStorage(\n      'my-storage',\n      {\n        name: 'Apple',\n        color: 'red',\n      },\n    )\n\n    return { x, y, isDark, store }\n  }\n}\n```\n\nRefer to [functions list](https://vueuse.org/functions) or [documentations](https://vueuse.org/) for more details.\n\n## 📦 Install\n\n> 🎩 From v4.0, it works for Vue 2 & 3 **within a single package** by the power of [vue-demi](https://github.com/vueuse/vue-demi)!\n\n```bash\nnpm i @vueuse/core\n```\n\nVue 3 Demo: [Vite](https://github.com/vueuse/vueuse-vite-starter), [Webpack](https://github.com/vueuse/vueuse-vue3-example) / Vue 2 Demo: [Vue CLI](https://github.com/vueuse/vueuse-vue2-example)\n\n### CDN\n\n```html\n<script src=\"https://unpkg.com/@vueuse/shared\"></script>\n<script src=\"https://unpkg.com/@vueuse/core\"></script>\n```\n\nIt will be exposed to global as `window.VueUse`\n\n## 🧱 Contribute\n\nSee the [**Contributing Guide**](https://vueuse.org/contributing)\n\n## 🌸 Thanks\n\nThis project is heavily inspired by the following awesome projects.\n\n- [streamich/react-use](https://github.com/streamich/react-use)\n- [u3u/vue-hooks](https://github.com/u3u/vue-hooks)\n- [shuidi-fed/vue-composition-toolkit](https://github.com/shuidi-fed/vue-composition-toolkit)\n- [logaretm/vue-use-web](https://github.com/logaretm/vue-use-web)\n- [kripod/react-hooks](https://github.com/kripod/react-hooks)\n\nAnd thanks to [all the contributors on GitHub](https://github.com/vueuse/vueuse/graphs/contributors)!\n\n## 👨‍🚀 Contributors\n\n### Financial Contributors on Open Collective\n\n<a href=\"https://opencollective.com/vueuse\"><img src=\"https://opencollective.com/vueuse/individuals.svg?width=890\"></a>\n\n## 📄 License\n\n[MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE) © 2019-PRESENT [Anthony Fu](https://github.com/antfu)\n","readmeFilename":"README.md","_id":"@vueuse/core@6.0.0-beta.2","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-tVfRC3dWhf5RzVvYiYf1eJUqPWNKBfAQ//CVRE+McOEGsaeJH5UU0XVMJBHTd8T4erLjo8MIrssEy/yD0czgaQ==","shasum":"f0113b2939ec09c2fbef495dead7e10981d36c77","tarball":"http://registry-npm.ywwl.com/@vueuse/core/download/@vueuse/core-6.0.0-beta.2.tgz","fileCount":9,"unpackedSize":580350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEUmfCRA9TVsSAnZWagAAPS0P/0CHele9zPQqW245MT6x\nrVBN1gjm2hW7LXz8pUNFL9I5l1eK6JsCUBzNR9ekEWc/tOwKMjGUJrKoDAV8\nzjRSeqyDj/ZYdx+OQiZA1Y6XN/dcozfK8GvurIp5GhC9Hg0piRVq3sBOXfRE\nw2bAjKkgYO/GSrjSuG49n1j5aKlsYpl7nFp6/xU2TAe5p+dzBn3i1LDDjB+H\n8kXjUSOz6sq5YYABpWroap/Y3Pw6N3RGOrvu74hmJ/N4O9iccFhsDBZEtILW\nlkuVOQL073V9fnJ8iFnuO168jgZ+43uuzzXpidJz+Jpp6Gzzs105EID/aDeL\n2puvMgl6bjJ0pEDMHN91Y0KYwpKe4G0Y7WmKO1yff3B4WxoXHLyoMm/mZsYK\nwfo3kdxodnjpSkKrx171dE34lrLLHgF8xn65JfVMvvRG8CzID/GxSL65XhPq\nCedNTj0KRkkPbu1oSoaB122WwU/zdDPZHrDy1bJxHv/SYOtPoOnrZ1t7jco1\nck0BWI538BpJ80ln64Tzo7E5lS6QaKa1xgIud6uL2rTnDKXhM11R/Z6JNyfU\nb1aLD/gO+sjkCxd2giQZ8P4jsrofjs53O2cKRxM+EzsSGMxvjlZ5R9cl285V\nTBbxZ9+vtFVYK+GQ/D6sIE8qKe2q3MbjIyjKf8XiJu4OLDCsdjwRJe1hN7vA\nzH+v\r\n=S/U7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmZlPsXEb8MOh6ORDvQ6nKK1HcpY4/YY9uOEtBSe/rcwIhAIl41RJ2j03KTxNImi+F8C16BYisQ7Cszkq+K/86sWqT"}],"size":128944,"noattachment":false,"key":"/@vueuse/core/-/@vueuse/core-6.0.0-beta.2.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"},{"name":"egoist","email":"0x142857@gmail.com"},{"name":"tahul","email":"yael@ipseity.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_6.0.0-beta.2_1628522911757_0.5749031289824795"},"_hasShrinkwrap":false,"publish_time":1628522911945,"_cnpm_publish_time":1628522911945,"dist-tags":{"alpha":"14.0.0-alpha.3","beta":"14.0.0-beta.1","demi":"4.0.0-alpha.0","latest":"15.0.0","vue2":"2.0.35","vue3":"3.0.35"}}