{"_id":"@bedrock/vue-router","name":"@bedrock/vue-router","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bedrock/vue-router","version":"1.0.0","type":"module","description":"vue-router integration for Vue apps running on Bedrock","license":"Apache-2.0","exports":"./lib/index.js","scripts":{"lint":"eslint ."},"peerDependencies":{"@bedrock/vue":"^6.0.0","vue":"^3.5.38","vue-router":"^5.0.0"},"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/bedrock-vue-router.git"},"keywords":["bedrock","vue","vue-router","web"],"author":{"name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com","url":"https://digitalbazaar.com"},"bugs":{"url":"https://github.com/digitalbazaar/bedrock-vue-router/issues"},"homepage":"https://github.com/digitalbazaar/bedrock-vue-router","devDependencies":{"@digitalbazaar/eslint-config":"^8.0.1","eslint":"^9.39.4"},"gitHead":"207734ebfdd046692ba183570a3e76616bdedbd9","_id":"@bedrock/vue-router@1.0.0","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-P6FE1bX1PTwnn3+O0ZMYM0EC88UX0zMSGDo3vFH4KzkXvn+NTvWNpFdMnSrSc2zl7hOdg1gyexgqejcyl1Hq+Q==","shasum":"7f17514fec6fb0e8eb4955fe1ab967ee6613a78c","tarball":"https://registry.npmjs.org/@bedrock/vue-router/-/vue-router-1.0.0.tgz","fileCount":4,"unpackedSize":15641,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDbpspyf9RR7nG5D2ocWks0YRlRAFunEScbG2HnPluTAAIgNiANBeRACewWhIiVDk/Xd30S7leQCxWf2vVjwsxvsio="}]},"_npmUser":{"name":"dlongley","email":"dlongley@digitalbazaar.com"},"directories":{},"maintainers":[{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue-router_1.0.0_1788388027287_0.5088245675052672"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T22:27:07.159Z","1.0.0":"2026-09-02T22:27:07.420Z","modified":"2026-09-02T22:27:07.682Z"},"maintainers":[{"name":"msporny","email":"msporny@digitalbazaar.com"},{"name":"dlongley","email":"dlongley@digitalbazaar.com"},{"name":"davidlehn","email":"dil@lehn.org"},{"name":"gannan","email":"gannan@digitalbazaar.com"}],"description":"vue-router integration for Vue apps running on Bedrock","homepage":"https://github.com/digitalbazaar/bedrock-vue-router","keywords":["bedrock","vue","vue-router","web"],"repository":{"type":"git","url":"git+https://github.com/digitalbazaar/bedrock-vue-router.git"},"author":{"name":"Digital Bazaar, Inc.","email":"support@digitalbazaar.com","url":"https://digitalbazaar.com"},"bugs":{"url":"https://github.com/digitalbazaar/bedrock-vue-router/issues"},"license":"Apache-2.0","readme":"# bedrock-vue-router\n\n[vue-router][] integration for [Vue][] applications running on [Bedrock][].\n\nThis package owns the `vue-router` peer dependency so that a host application's\nrouter major version is independent of [@bedrock/vue][]. It provides\n`augmentRouter`, which was part of `@bedrock/vue` through v5.\n\n## Usage\n\n`augmentRouter` adds the common \"not found\" route and page title handling to a\nrouter created by the host application:\n\n```js\nimport {augmentRouter} from '@bedrock/vue-router';\nimport {initialize} from '@bedrock/vue';\nimport {createRouter, createWebHistory} from 'vue-router';\nimport MyApp from '../components/MyApp.vue';\n\ninitialize({\n  async beforeMount({app}) {\n    const router = createRouter({\n      history: createWebHistory(),\n      routes: []\n    });\n    // adds common functionality like \"not found\" route\n    // and page title setter\n    augmentRouter({app, router});\n    app.use(router);\n\n    return MyApp;\n  }\n})\n```\n\nA route may set `meta.title` to either a string or a function called with\n`{to, from}`. A route without one restores the document's original title.\n\nThe \"not found\" route renders `NotFound.vue` from [@bedrock/vue][], so this\npackage must be used inside a `@bedrock/vue` application.\n\n## License\n\n[Apache License, Version 2.0](LICENSE) Copyright 2011-2026 Digital Bazaar, Inc.\n\nOther Digital Bazaar products are available under a non-commercial license.\nPlease contact Digital Bazaar for details.\n\nCommercial licensing and support are available by contacting\n[Digital Bazaar](https://digitalbazaar.com/) <support@digitalbazaar.com>.\n\n[@bedrock/vue]: https://github.com/digitalbazaar/bedrock-vue\n[Bedrock]: https://github.com/digitalbazaar/bedrock\n[Vue]: https://vuejs.org/\n[vue-router]: https://router.vuejs.org/\n","readmeFilename":"README.md","_rev":"1-f1b3d08e6677e7f2400239d5a231e729"}