{"name":"@vueuse/core","version":"3.0.0","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.min.js","browser":"dist/esm/index.js","scripts":{"build":"node ./build/build","release":"npm run lint && bump --commit --preid alpha && node ./build/publish.js all","switch":"node ./build/switch","import":"node ./build/import","dev":"tsc -p tsconfig.esm.json --watch","test":"jest","lint":"eslint {src,.storybook,build}/**/*.{js,ts,tsx,vue,md}","lint:fix":"npm run lint -- --fix","readme:update":"node ./build/updateReadme","clean":"rimraf dist","storybook":"start-storybook -p 6006","storybook:build":"npm run build 2 && build-storybook"},"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":{"js-yaml":"^3.13.1"},"peerDependencies":{"vue":"next"},"devDependencies":{"@antfu/eslint-config-vue":"0.2.10","@babel/core":"7.7.7","@babel/plugin-proposal-optional-chaining":"^7.7.5","@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.25","@types/js-yaml":"^3.12.1","@types/node":"13.1.1","@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","axios":"0.19.0","babel-loader":"8.0.6","babel-preset-vue":"2.0.2","commander":"4.0.1","consola":"2.11.2","eslint":"6.8.0","eslint-plugin-jest":"23.2.0","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","loader-utils":"1.2.3","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","prettier":"1.19.1","prismjs":"1.17.1","raw-loader":"4.0.0","rimraf":"3.0.0","rollup":"1.27.14","rollup-plugin-gzip":"2.2.0","rollup-plugin-local-resolve":"1.0.7","rollup-plugin-uglify":"6.0.4","semver":"7.1.1","tailwindcss":"1.1.4","ts-jest":"24.2.0","typescript":"3.7.4","typestyle":"^2.0.4","version-bump-prompt":"5.0.7","vue":"2.6.11","vue-loader":"15.8.3","vue-template-compiler":"2.6.11","vue-tsx-support":"2.3.2"},"gitHead":"40120c87999b0c3419674db1854213e7298782d1","readme":"<p align=\"center\">\n<img src=\"https://raw.githubusercontent.com/antfu/vueuse/master/resources/logo-vertical.png\" alt=\"logo\" width=\"300\"/>\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\" alt=\"NPM version\" /></a>\n<a href=\"https://vueuse.netlify.com\" target=\"__blank\"><img src=\"https://img.shields.io/static/v1?label=storybook&message=demos&color=63ba83\" alt=\"Storybook Demos\" /></a>\n<img alt=\"Dependencies\" src=\"https://img.shields.io/david/antfu/vueuse?color=35495e\"/>\n<a href=\"https://github.com/antfu/vueuse\" target=\"__blank\"><img src=\"https://img.shields.io/github/last-commit/antfu/vueuse.svg?color=a38eed\" alt=\"GitHub last commit\" /></a>\n<a href=\"https://github.com/antfu/vueuse/issues\" target=\"__blank\"><img src=\"https://img.shields.io/github/issues/antfu/vueuse.svg?color=c977be\" alt=\"GitHub issues\" /></a>\n<a href=\"https://github.com/antfu/vueuse\" target=\"__blank\"><img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/antfu/vueuse?style=social\"></a>\n</p>\n\n\n<p align=\"center\">\nCollection of essential Vue Composition API (inspired by <a href='https://github.com/streamich/react-use' target='__blank'>react-use</a>)\n</p>\n\n\n## 🚀 Features\n\n- 0 dependencies ⚡ No worry about your bundle size\n- Fully tree shakable 🌴 Only take what you want\n- Seamless migration 🕶 Use it now! Works for **both** Vue 3.x and 2.x\n- Browser compatible 🌐 No need to setup build tools\n- Intractive docs & demos 🎪 [Check out Storybook out!](https://vueuse.netlify.com)\n\n\n## 📦 Install\n\n### for Vue 3.x ([vue-next](https://github.com/vuejs/vue-next)), [*demo here*](https://vueuse-next-example.netlify.com/)\n\n```bash\nnpm i @vueuse/core@vue3\n```\n\n### for Vue 2.x with [composition-api](https://github.com/vuejs/composition-api) polyfill\n\n```bash\nnpm i @vue/composition-api @vueuse/core@vue2\n```\n\nPlease [register the Composition API Plugin](https://github.com/vuejs/composition-api#usage) before using APIs.\n\n### CDN\n\n```html\n<!-- For Vue 3.x -->\n<script src=\"https://unpkg.com/@vueuse/core@vue3\"></script> \n\n<!-- For Vue 2.x -->\n<script src=\"https://unpkg.com/@vueuse/core@vue2\"></script>\n```\n\nIt will be exposed to global variable as `window.VueUse`\n\n\n## ⚡ Functions\n\nYou can checkout the documents and live demos in [Storybook](https://vueuse.netlify.com/).\n\n<!--GENEARTED LIST, DO NOT MODIFY MANUALLY-->\n<!--FUNCTIONS_LIST_STARTS-->\n\n- Animation\n  - [useInterval](https://vueuse.netlify.com/?path=/story/animation--useinterval)\n  - [useIntervalFn](https://vueuse.netlify.com/?path=/story/animation--useintervalfn)\n  - [useNow](https://vueuse.netlify.com/?path=/story/animation--usenow)\n  - [useRaf](https://vueuse.netlify.com/?path=/story/animation--useraf)\n  - [useRafFn](https://vueuse.netlify.com/?path=/story/animation--useraffn)\n  - [useTimeout](https://vueuse.netlify.com/?path=/story/animation--usetimeout)\n  - [useTimeoutFn](https://vueuse.netlify.com/?path=/story/animation--usetimeoutfn)\n\n- Browser\n  - [useClipboard](https://vueuse.netlify.com/?path=/story/browser--useclipboard)\n  - [useEventListener](https://vueuse.netlify.com/?path=/story/browser--useeventlistener)\n  - [useFullscreen](https://vueuse.netlify.com/?path=/story/browser--usefullscreen)\n  - [useMediaQuery](https://vueuse.netlify.com/?path=/story/browser--usemediaquery)\n  - [usePermission](https://vueuse.netlify.com/?path=/story/browser--usepermission)\n  - [usePreferredDark](https://vueuse.netlify.com/?path=/story/browser--usepreferreddark)\n  - [usePreferredLanguages](https://vueuse.netlify.com/?path=/story/browser--usepreferredlanguages)\n\n- Misc\n  - [useWebWorker](https://vueuse.netlify.com/?path=/story/misc--usewebworker)\n\n- Sensors\n  - [useBattery](https://vueuse.netlify.com/?path=/story/sensors--usebattery)\n  - [useDeviceLight](https://vueuse.netlify.com/?path=/story/sensors--usedevicelight)\n  - [useDeviceMotion](https://vueuse.netlify.com/?path=/story/sensors--usedevicemotion)\n  - [useDeviceOrientation](https://vueuse.netlify.com/?path=/story/sensors--usedeviceorientation)\n  - [useGeolocation](https://vueuse.netlify.com/?path=/story/sensors--usegeolocation)\n  - [useMouse](https://vueuse.netlify.com/?path=/story/sensors--usemouse)\n  - [useMouseInElement](https://vueuse.netlify.com/?path=/story/sensors--usemouseinelement)\n  - [useNetwork](https://vueuse.netlify.com/?path=/story/sensors--usenetwork)\n  - [useOnline](https://vueuse.netlify.com/?path=/story/sensors--useonline)\n  - [usePageLeave](https://vueuse.netlify.com/?path=/story/sensors--usepageleave)\n  - [useParallax](https://vueuse.netlify.com/?path=/story/sensors--useparallax)\n  - [useWindowScroll](https://vueuse.netlify.com/?path=/story/sensors--usewindowscroll)\n  - [useWindowSize](https://vueuse.netlify.com/?path=/story/sensors--usewindowsize)\n\n- State\n  - [useAsyncState](https://vueuse.netlify.com/?path=/story/state--useasyncstate)\n  - [useCounter](https://vueuse.netlify.com/?path=/story/state--usecounter)\n  - [useIdle](https://vueuse.netlify.com/?path=/story/state--useidle)\n  - [useLocalStorage](https://vueuse.netlify.com/?path=/story/state--uselocalstorage)\n  - [useSessionStorage](https://vueuse.netlify.com/?path=/story/state--usesessionstorage)\n  - [useStorage](https://vueuse.netlify.com/?path=/story/state--usestorage)\n  - [useStoragePlain](https://vueuse.netlify.com/?path=/story/state--usestorageplain)\n\n<!--FUNCTIONS_LIST_ENDS-->\n\nMore functions to be added. Please keep turned. (PRs are also welcome!)\n\n\n## 🔬 Technical Details\n\n### The Versioning\n\nFor every release, it will release two version of this package. The `3.x.x` is used for Vue 3.x and the `2.x.x` is used for 2.x. We use the major version number to distinguish the different target version will the minor and patch numbers are shared in both packages.\n\n### Different between 3.x and 2.x\n\nSince the Composition API will be available in 3.x. Using it in 2.x require you use a polyfill. For 3.x build, we use the API from [`@vue/runtime-dom`](https://www.npmjs.com/package/@vue/runtime-dom), and for 2.x, it's [`@vue/composition-api`](https://www.npmjs.com/package/@vue/composition-api). All the functions exported in this package behaves the same.\n\n```js\n// 3.x build\nimport { ref } from '@vue/runtime-dom'\n\n// 2.x build\nimport { ref } from '@vue/composition-api'\n```\n\n## 🧱 Contribute\n\nCheck out the [**Contributing Guide**](https://vueuse.netlify.com/?path=/story/docs--contributing)\n\n\n## 🌸 Thanks\n\nThis project is heavily inspired by 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\nThanks!\n\n\n## 📄 License\n\n[MIT License](https://github.com/antfu/vueuse/blob/master/LICENSE) © 2019-2020 [Anthony Fu](https://github.com/antfu)\n","readmeFilename":"README.md","_id":"@vueuse/core@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-88oCcbyp8Vu7bvbI5wNgZ36mUDUbvCuTSMBgeTgHOLjy8vSb/mO5oT3fgVjdOIKalzCtT2+DNnKndZ2SsGB+YA==","shasum":"0ea77e94e93ab4f1baac4c49c911531d6f90eb5e","tarball":"http://registry-npm.ywwl.com/@vueuse/core/download/@vueuse/core-3.0.0.tgz","fileCount":165,"unpackedSize":158120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDEFNCRA9TVsSAnZWagAANlMQAIKBVsY3MkA2qpzQTp25\n/lWRcTevFtgWbvp3TWZu+Ys4ISoFMJXkFb+Oz9DQv3tL6GCz22mXsQpvktbh\nhyDwX7K5UykUxFILE/SECDIjTYkLc5r8fJUjwuLLi10ZLbVWwF0l9jvU0tbU\nEXOYw5uv2UqyGAWeO21e/yV/Eh2DiLyK81aR+iNZH6/8KM/pjdZWFZMyzWhq\n0sXLDJPMQDTEzP5gdasFX6V9H2AT/5LvNPRhzBOACZLnwuRixTDBD2G89jP2\n8E8NleqKAY1hBWLUtnTOchz3+H6+blju1Z9NWvMgS8M3LKW+BKxApi74cg/C\n4NrWgUWNeH9QptFx3NXDkixHpx6pCgDLdiG/RtDFeXBumJfweRWhuUBDze48\nlablrpxZKPtDcqYyp5eDM5NcSy4+NOAZHYjRudmHLMGbegXHzFvSOkqs88Kh\ncvqrWvQrU6gMGAxbVv+bqdfzn5XTtTxFZfECJXR3y8btLoboAh4ntaRY/a9x\nGgNA9biK+eRTI90xlTZk5NVcdV5d1elQ3vrtOIj//iwA64bsivzgNNcEk5pl\npHZ/wWFGDqy3jXMCFEAQntfHfXoxrVEybnOQnsytnNjf2IPN0aBKo7CkzLB+\n7U2tPBLELtvF4Dp2NEbVP8ewXFzOv03jAx5wErxsilS51QZMY6s1w80zwS1s\nxjJD\r\n=3RaB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFqxIrWkXRo0GXB7R8s1EE7Cfe+6j+pjNXhneFl8KXwAiBcSiARg/Jgk+0w7dIvaSvgXoahK763LdN2yy6+FsbSQA=="}],"size":36669,"noattachment":false,"key":"/@vueuse/core/-/@vueuse/core-3.0.0.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_3.0.0_1577861453028_0.9623292964981329"},"_hasShrinkwrap":false,"publish_time":1577861453234,"_cnpm_publish_time":1577861453234,"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"}}