{"name":"@vueuse/core","version":"2.0.0-alpha.10","description":"Collection of essential Vue Composition API","main":"dist/main/index.js","typings":"dist/main/index.d.ts","module":"dist/esm/index.js","unpkg":"dist/umd/index.js","browser":"dist/umd/index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{src,.storybook,build}/**/*.{js,ts,tsx,vue,md}":["eslint --fix","git add"]},"repository":{"type":"git","url":"git+https://github.com/antfu/vueuse.git"},"keywords":["vue","vue-use","utils"],"author":{"name":"Anthony Fu","email":"https://github.com/antfu"},"license":"MIT","bugs":{"url":"https://github.com/antfu/vueuse/issues"},"homepage":"https://github.com/antfu/vueuse#readme","dependencies":{},"peerDependencies":{"vue":"^2.6.0","@vue/composition-api":"^0.3.0"},"devDependencies":{"@antfu/eslint-config-vue":"0.2.10","@babel/core":"7.7.7","@babel/preset-env":"7.7.7","@babel/preset-typescript":"7.7.7","@storybook/addon-actions":"5.2.8","@storybook/addon-knobs":"5.2.8","@storybook/addon-links":"5.2.8","@storybook/addon-notes":"5.2.8","@storybook/addons":"5.2.8","@storybook/theming":"5.2.8","@storybook/vue":"5.2.8","@types/fs-extra":"8.0.1","@types/inquirer":"6.5.0","@types/jest":"24.0.24","@types/node":"13.1.0","@types/semver":"6.2.0","@vue/babel-preset-jsx":"1.1.2","@vue/composition-api":"0.3.4","@vue/runtime-dom":"3.0.0-alpha.0","@vue/test-utils":"1.0.0-beta.30","autoprefixer":"9.7.3","babel-loader":"8.0.6","babel-preset-vue":"2.0.2","commander":"4.0.1","consola":"2.11.1","eslint":"6.8.0","eslint-plugin-jest":"23.1.1","eslint-plugin-markdown":"1.0.1","fs-extra":"8.1.0","github-markdown-css":"3.0.1","husky":"3.1.0","inquirer":"7.0.1","jest":"24.9.0","lint-staged":"9.5.0","markdown-it":"10.0.0","markdown-it-highlight-lines":"1.0.2","markdown-it-link-attributes":"3.0.0","markdown-it-loader":"0.7.0","markdown-it-prism":"2.0.3","postcss":"7.0.25","postcss-import":"12.0.1","postcss-loader":"3.0.0","prismjs":"1.17.1","rimraf":"3.0.0","rollup":"1.27.14","rollup-plugin-local-resolve":"1.0.7","semver":"7.1.1","tailwindcss":"1.1.4","ts-jest":"24.2.0","typescript":"3.7.4","version-bump-prompt":"5.0.6","vue":"2.6.11","vue-loader":"15.8.3","vue-template-compiler":"2.6.11","vue-tsx-support":"2.3.2"},"gitHead":"46d910e5986a2b0edc385445ae9147729ff49854","_id":"@vueuse/core@2.0.0-alpha.10","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-PanZa5sRF3+4oMZ/vu6fnOAhXJuwscoj73fA7dbSkVOpiceo5ZmI+GeVeu3VYCtCpB6XUTLW2sjC+RUnCeriPw==","shasum":"025b447d310145102bc79ef528b94b698ae5d6a2","tarball":"http://registry-npm.ywwl.com/@vueuse/core/download/@vueuse/core-2.0.0-alpha.10.tgz","fileCount":68,"unpackedSize":61058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeA04sCRA9TVsSAnZWagAAl+8P/A2PUNUj/SaG2gx0zrCY\n0YL0bSrQ5A28owpwydeig9rf2QiyDC07spUQGzawA4zdXV1t9e9Z5WqeoWA6\nJccSF95sP6V241tE1MbK43DSIAYmQ7w4xNSfF/kr+7LHvG3atJFWgMgNE+4N\n42O5EC+LLjMczycpwZlVJE1rGOhWHhgQgzkVRw6UQpmCf+3cUUARvkxbVZrB\n7k/P+aZ407qOm3Z6mJn6tGcm+7CkCuVZqOqCzPzhIU1z3AV+juvsv6rrDidG\n2nNTyyWPKBxPWV66KyV5FUJpVuvSoy91ZSX5ij4utf8Lzw+nEpd0S4nH4q5e\n2xYVevMncqn5q+ilVqh7jK8EPHy34j4kmBQ9WoezWHAk0vK6XOnwGfao9qUX\nM2EK2dz5EJg/O07qJp2R0MpUv/F8upMpu72Nj6P1cG/dc0kRh5RhT8L1gPSt\nqKbFqNQDxf1teSx/8UbAorBEzYYB2p69Afxxc+cGxiIo+AIqcBV8CRWbQRyZ\nGsMqM+0G+85liLPI98WUO/FipUJ5M0+37M5GsM3uK3UakB0C7U1MPWbEj38x\n7WkdxKly8A7cQjXEFovYz3pgXd/VUY9sGimpAqYcklioueBtyWd3qh+2WY7e\nFnrcbemlKTpYq0C7FUZMWroilNEsD7X4meyQOpA6ZAw/GeYRKoylBd8cQO75\nknRb\r\n=GA7b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZbvcTvUnX3LjxFJek1OtFWPhR1bcNtw15kPSWEpzuiAiAlPO44agRW+AMDH2hQZKnyLGQcr/HGQK3ZT0EFQZVHDw=="}],"size":14247,"noattachment":false,"key":"/@vueuse/core/-/@vueuse/core-2.0.0-alpha.10.tgz"},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core_2.0.0-alpha.10_1577274923885_0.07917519186747146"},"_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":1577274924031,"_cnpm_publish_time":1577274924031,"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"}}