{"_id":"@bisquit/vue-router-composable","_rev":"2-68963b65e8c60ab0ba1698e18bf5a511","name":"@bisquit/vue-router-composable","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@bisquit/vue-router-composable","version":"0.0.1","description":"Use vue router with composition API in Vue 2","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsup src/index.ts --format cjs --dts --external vue,@vue/composition-api"},"devDependencies":{"@vue/composition-api":"^1.0.0-rc.5","rimraf":"^3.0.2","tsup":"^4.8.21","typescript":"^4.2.3","vue":"^2.6.12","vue-router":"^3.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/bisquit/vue-router-composable.git"},"author":{"name":"bisquit"},"keywords":["vue","router","composition"],"license":"MIT","gitHead":"dcb73890407f59a5c0cc841c651d736a24d7d748","bugs":{"url":"https://github.com/bisquit/vue-router-composable/issues"},"homepage":"https://github.com/bisquit/vue-router-composable#readme","_id":"@bisquit/vue-router-composable@0.0.1","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pU6YjfHDx3ll955g9DJL9blS1NaEpv+UfxgW01ouxUQ3D3vtHbRkk4ErXmJ78mWUKE4DDzoNhR2zBGtKjt1AuA==","shasum":"4f125311a8ab0b641b293b47d75e944ae4216861","tarball":"https://registry.npmjs.org/@bisquit/vue-router-composable/-/vue-router-composable-0.0.1.tgz","fileCount":4,"unpackedSize":2352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYXopCRA9TVsSAnZWagAAPOsP/3oY/yqTqbXvrmNEyowU\nJeFJ18OBx2CIhDRswSoAyiYlgUBg4H0bNSVXi8lFtyY9nG0x62LU/ULbWfbw\nHg0Yde+wAUpIaRQEwntIV5UnQvZTQUT3/nI1CCrsj2x3CMdtpVkTblPkbV3v\nEJ5A3TN04bFV1oqZLrq59KgcP0USXOia+NABs/o72UGW/xegn+W3kNWTldmg\nWfauDRnTFX/DfH4MW8Mea31q0hhnzf/1rgtOdU3YP9/rcDQnGBqwv1npKSkO\nuZgU0WUj2TXaw4zvmuwK9e98NlOZzrqA9+kEDCP4hA2STp7QyqzDhE7gelMN\nWSwZznuxYMwit6gxmXWOmPbUfwO0uTwtteYlEFSGUcCPpYIIxp0eWBIqpt8d\nyFiasqxuZOpL3kJneYyvuyS9Re2N1BaSMNubar1fPtFY2V2fWordROvPC4ip\n+N3loIq2NF7JX3wCB9eyq7UFer5r0tJWrUfOkmov/EmHu7HaFERN81Ks4w+E\nQKx7//4/KZH5X36B9Cv/92C4xpWpVSYT4lN8bhr8xmrbuhH/erf6c4ZFsoIG\nLsNcj1O24ZlKHwhwYgOT21uyQNVMMuNDBNQR3E4vOY6Diq/IXD0ETFK9TLfG\ngk04QRbVtD884hxB2S0wDqjVG62CMD7ucVkv8offioX1cB/KFBiLNh4pVRMD\n51yo\r\n=QzDt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUvAgq34szeMqABujzWHWMn7lJuxmfLe5qqEVIPisvcAiBnm/gDHRR/eRW297EWrOWA/f0R2tQJn0ZikTNcHv8FtQ=="}]},"_npmUser":{"name":"bisquit","email":"qu1dpr09u0@gmail.com"},"directories":{},"maintainers":[{"name":"bisquit","email":"qu1dpr09u0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-router-composable_0.0.1_1617001001253_0.16983920188224144"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bisquit/vue-router-composable","version":"0.0.2","description":"Use vue router with composition API in Vue 2","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf dist && tsup src/index.ts --format cjs --dts --external vue,@vue/composition-api"},"devDependencies":{"@vue/composition-api":"^1.0.0-rc.5","rimraf":"^3.0.2","tsup":"^4.8.21","typescript":"^4.2.3","vue":"^2.6.12","vue-router":"^3.5.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/bisquit/vue-router-composable.git"},"author":{"name":"bisquit"},"keywords":["vue","router","composition"],"license":"MIT","gitHead":"4973c51676dc918875b962b790342a28227eb369","bugs":{"url":"https://github.com/bisquit/vue-router-composable/issues"},"homepage":"https://github.com/bisquit/vue-router-composable#readme","_id":"@bisquit/vue-router-composable@0.0.2","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-FlREZE/pRmHJAtJfYZ4QOlCDCSgIAeoZPjvrEukPw2AJvwBhguiuQLpO1Js9dLqL6u1PS+ZP6QB8sZvXvIz8UA==","shasum":"5d28c0029ef5d5f2a2532532aba59cc674b7760f","tarball":"https://registry.npmjs.org/@bisquit/vue-router-composable/-/vue-router-composable-0.0.2.tgz","fileCount":5,"unpackedSize":3624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYYM+CRA9TVsSAnZWagAAuJMQAJGLPymYOI1pxR420ppe\n/j+N/WcKwr8mlyQaQNLRwGMmarOg32FyUjq5oxyAIWyXsVTLQwdMmtIMIzmX\nhEBbbIiZ3KA5h1ymjboOb76lR0nqkae/jXrmiMJFYGzVLYHukaUQo9LoFEAf\ng3j3KOjuOEKbw4E2SqD4VCbEXOfnFXLLflNvSKiD4nwMv7IAjlMewxfwxgs1\nhuIM5V2FsHa4O3x83AT98thAi+jxLyFNN2B27fQxikqDJQkmvdBoeiuJVQkp\n6r3rvc3DmRr7I8b6r4HM7fBq31HUIQAUDTCw5vQ6aOod6JoQzZRtnCWwOz+I\nqPstKSgSpyD5eq18b3xF8URP/bY8c1NWGYpIq2hI5b0GJ+CtRgQIbzXY0kf5\ndq3iiAZE9xyq4aUXbGYHlrZ1UkAE7V6TH38MNlfZ0jWRrwWfg0Juh+QF92Zw\nLO1tc0om2i7shwBaPalM9WTzIRoyTlqr9lx5nMbKE7OUSc5hjPWnQgU1PrQv\nytAxohQR+wlk3GW8tJQKSGmyOuK0ctBBB7gt8ZcG5C3p5mwsHV1IpS99R0Ww\nUteDpV6O0zsbfVLSuXxXzdsqyrgjho0bYxklQ25Snt5EdvhTiPJh2T2YaFS3\nbUGxIwCIUPDHBsfQ2Co+FIqXRvRhMvLnKcRg+F63arfK7OO/ni+6y28z+EGJ\n/2cl\r\n=hIyN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8m1eHttPu47EnaF8SYYfdZRAS+4XqYpukcdAqUVWDWAIgSB0Fcx3y8EOp+XtF14b4W78TTXfNeZLQ/zGEJ8ibxZo="}]},"_npmUser":{"name":"bisquit","email":"qu1dpr09u0@gmail.com"},"directories":{},"maintainers":[{"name":"bisquit","email":"qu1dpr09u0@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-router-composable_0.0.2_1617003325727_0.16177583365320092"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-29T06:56:41.190Z","0.0.1":"2021-03-29T06:56:41.389Z","modified":"2022-04-04T18:56:18.311Z","0.0.2":"2021-03-29T07:35:25.875Z"},"maintainers":[{"name":"bisquit","email":"qu1dpr09u0@gmail.com"}],"description":"Use vue router with composition API in Vue 2","homepage":"https://github.com/bisquit/vue-router-composable#readme","keywords":["vue","router","composition"],"repository":{"type":"git","url":"git+ssh://git@github.com/bisquit/vue-router-composable.git"},"author":{"name":"bisquit"},"bugs":{"url":"https://github.com/bisquit/vue-router-composable/issues"},"license":"MIT","readme":"# vue-router-composable\n\nUse vue router with composition API in Vue 2\n\n## Installation\n\n```bash\nnpm install @bisquit/vue-router-composable\n# or\nyarn add @bisquit/vue-router-composable\n```\n\n## Usage\n\nBefore using this package, you should install and setup [`@vue/composition-api`](https://github.com/vuejs/composition-api).\n\n### `useRouter()`\n\n```ts\nimport { useRouter } from '@bisquit/vue-router-composable';\n\nexport default {\n  setup() {\n    const router = useRouter();\n\n    const onClick = () => {\n      router.push('/');\n    };\n  },\n};\n```\n\n### `useRoute()`\n\n```ts\nimport { useRoute } from '@bisquit/vue-router-composable';\n\nexport default {\n  setup() {\n    const route = useRoute();\n\n    // `route` is a ref, so use with `unref` or `.value`\n    const { query } = route.value;\n    doSomething(name: query.name);\n  },\n};\n```\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}