{"name":"@vueuse/core","version":"9.0.0","description":"Collection of essential Vue Composition Utilities","author":{"name":"Anthony Fu","email":"https://github.com/antfu"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/vueuse/vueuse#readme","repository":{"type":"git","url":"git+https://github.com/vueuse/vueuse.git","directory":"packages/core"},"bugs":{"url":"https://github.com/vueuse/vueuse/issues"},"keywords":["vue","vue-use","utils"],"sideEffects":false,"exports":{".":{"types":"./index.d.ts","require":"./index.cjs","import":"./index.mjs"},"./*":"./*","./metadata":{"types":"./metadata.d.ts","require":"./metadata.cjs","import":"./metadata.mjs"}},"main":"./index.cjs","module":"./index.mjs","unpkg":"./index.iife.min.js","jsdelivr":"./index.iife.min.js","types":"./index.d.ts","dependencies":{"@types/web-bluetooth":"^0.0.15","@vueuse/metadata":"9.0.0","@vueuse/shared":"9.0.0","vue-demi":"*"},"gitHead":"86358fffd5573975d6dd1b838c1e9709d608fccd","_id":"@vueuse/core@9.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-hMMc2ajuVknkL7Z39JdP9gFFND2OgnDTSS5mmuinWGAE1Vxy1AwDvTHm3+juyk+GzJjYRAktnBIPy7Fq53iOnw==","shasum":"2e3d37dc08e1e18ebe385c40a41a7d2b7eb2ae0c","tarball":"http://registry-npm.ywwl.com/@vueuse/core/download/@vueuse/core-9.0.0.tgz","fileCount":11,"unpackedSize":818718,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB49FJV1AIBnsMCI/j1Vl3WhPNuzKDGKBZqiTHww/eZkAiEAmNhyLZ6KVXyIFNOh3vFHzSkhgtSWoHMT2hxHg6XXxx0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi32UZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6mw/8Ct5/7Tiwur2E0hFai3FI8UgmLv58wXTdXsbjObkWcCXagaA9\r\nYouH6mD/DTBZB+c+YolNAJV3QQ/42GKuUgYxM3LSSAx/a+/MAo4z4M3f6Uzq\r\nDPlt7QUmp+jxmDBy8nHWYENJr+SzHf7eXZJGONgwKEdi2vENK2qf/xRpAqzS\r\n35Mex/hsZBtYb4zuw1jVB/HZMB8tT/I9Ib17Z+4A19wsHXsiAuRm4rBkVxQt\r\n4qYRvrOc1CtArUzixj7ZiogfUTRxnJc7M7iyKMKjenaRfNkh4giPnqQ7Vhuj\r\nqsm9Bo45P49zANcZad8nkcz4aGMPRqqdeVQ41kTyUElvRqWZ6XK+tPbNyXTk\r\nznxxesH2rDUjQRfkMdBDf6cDvGiUZQOrcsGJPGwWRZgM9qUNp7aJE65BHAet\r\nSUV3nui87Qt+NLdDWZqts+7QERXC1Yro9lH3E5jpVaYwTKm6E+fd6Dn9ExRy\r\nBMx7Nl5aDrBGk3QpasTKotc9+tJhL3fvLNIqdv5R0KHjPMf+mFy3E06V2ykA\r\nTTX+EhmjLu0RGSfSvuzVlZ3EVRkGNKIFlPSfdJTECh9F5nmaL1j07m8xL5gt\r\nQ/96XY5HrXt/MDSmV6Hkof1Yp70d0WdurfawrN7ObAhEgmC9OIBp5a5KBc5c\r\nBqRtWs7FiOS019UTZ5G8v1zcmFSWHZnWyeE=\r\n=hit4\r\n-----END PGP SIGNATURE-----\r\n","size":184263,"noattachment":false,"key":"/@vueuse/core/-/@vueuse/core-9.0.0.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_9.0.0_1658807577114_0.8718680159066905"},"_hasShrinkwrap":false,"readme":"<p align=\"center\">\n<a href=\"https://github.com/vueuse/vueuse#gh-light-mode-only\">\n  <img src=\"https://raw.githubusercontent.com/vueuse/vueuse/main/packages/public/logo-vertical.png#gh-light-mode-only\" alt=\"VueUse - Collection of essential Vue Composition Utilities\" width=\"300\">\n</a>\n<a href=\"https://github.com/vueuse/vueuse#gh-dark-mode-only\">\n  <img src=\"https://raw.githubusercontent.com/vueuse/vueuse/main/packages/public/logo-vertical-dark.png#gh-dark-mode-only\" alt=\"VueUse - Collection of essential Vue Composition Utilities\" width=\"300\">\n</a>\n<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://vueuse.org/badge-function-count.svg\">\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 shakeable**: 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 { useLocalStorage, useMouse, usePreferredDark } from '@vueuse/core'\n\nexport default {\n  setup() {\n    // tracks mouse position\n    const { x, y } = useMouse()\n\n    // if 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\n[Add ons](https://vueuse.org/add-ons.html) | [Nuxt Module](https://vueuse.org/guide/index.html#nuxt)\n\n> From v6.0, VueUse requires `vue` >= v3.2 or `@vue/composition-api` >= v1.1\n\n###### Demos\n\n- [Vite + Vue 3](https://github.com/vueuse/vueuse-vite-starter)\n- [Nuxt 3 + Vue 3](https://github.com/antfu/vitesse-nuxt3)\n- [Webpack + Vue 3](https://github.com/vueuse/vueuse-vue3-example)\n- [Nuxt 2 + Vue 2](https://github.com/antfu/vitesse-nuxt-bridge)\n- [Vue CLI + Vue 2](https://github.com/vueuse/vueuse-vue2-example)\n\n### CDN\n\n```vue\n<script src=\"https://unpkg.com/@vueuse/shared\"></script>\n\n<script src=\"https://unpkg.com/@vueuse/core\"></script>\n```\n\nIt will be exposed to global as `window.VueUse`\n\n## 🪴 Project Activity\n\n![Alt](https://repobeats.axiom.co/api/embed/a406ba7461a6a087dbdb14d4395046c948d44c51.svg 'Repobeats analytics image')\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- [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","publish_time":1658807577437,"_cnpm_publish_time":1658807577437,"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"}}