{"bugs":{"url":"https://github.com/ionic-team/stencil-router"},"dist":{"shasum":"6581dc417431d074015087cb77a37f0a9ac38604","tarball":"https://registry.npmjs.org/@stencil/router/-/router-0.0.29-4.tgz","fileCount":91,"integrity":"sha512-BbL4zkiDlBIkkVCoaK/aljR+eMxuDGQXSnU8CTSqIyV7GSkPajllX4QogUxA49P8GpPk7go1o8CvtishRGn2Qg==","signatures":[{"sig":"MEYCIQD2yBZR9qe6ElnSgnWd3ZkaT5VLC+vdONgNv5NAyR5q2wIhAI7FBh+0gP9LnjBnOkkGPQnc12dHS85S3Jf1in+joR5o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":266429},"jest":{"testRegex":"/__tests__/.*(test|spec)\\.(ts|tsx)$","transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/stencilrouter.js","name":"@stencil/router","files":["dist/"],"types":"dist/types/index.d.ts","unpkg":"dist/stencilrouter.js","author":{"name":"Ionic Team"},"module":"dist/collection/index.js","readme":"[![npm][npm-badge]][npm-badge-url]\n## Stencil Router\n\nA simple router, inspired by React Router v4, for Stencil apps and vanilla Web Component apps.\n\n```html\n<stencil-router>\n  <stencil-route url=\"/\" component=\"landing-page\" exact={true}></stencil-route>\n  <stencil-route url=\"/docs\" component=\"docs-page\"></stencil-route>\n  <stencil-route url=\"/demos\" component=\"demos-page\"></stencil-route>\n</stencil-router>\n```\n\n### Included components\n\n- **stencil-router**\n\n  You should have one single stencil-router component in your project.  This component controls all interactions with the browser history and it aggregates updates through an event system.\n\n- **stencil-route**\n  \n  This component renders based on whether the supplied url matches the current location.\n\n  *properties*:\n  - **url** (*string*): the pathname to match on.  Accepts paths similar to expressjs.  So that you can define parameters in the url `/foo/:bar` where bar would be available in incoming props.\n  - **component** (*string*): the component name that you would like the route to render\n  - **componentProps** (*key/value Object*): a key value object(`{ 'red': true, 'blue': 'white'}`) containing props that should be passed to the defined component when rendered.\n  - **routeRender** (*function*): function that accepts props as an argument. If this exists it will be used in place of the component defined.\n  - **exact** (*boolean*): If true then only render this route when the url matches exactly to the location, if false it will render if the current url 'matches' the url defined.\n\n- **stencil-route-link**\n\n  This component is used to render links to defined routes.  It applys a specific style based on whether the link matches the current location.\n\n  *properties*:\n  - **url** (*string*): the pathname to link to.\n  - **exact** (*boolean*): If true then only apply the active class when the url matches exactly to the location.\n  - **activeClass** (*string*): The class to apply if the link matches the current location. This defaults to 'link-active'.\n\n- **stencil-route-redirect**\n\n  This component redirects the current location.\n\n  *properties*:\n  - **url** (*string*): the url to redirect to.\n\n\nNote: for apps using Ionic, we recommend using the Ionic navigation system and router for more native-style navigation.\n\n[npm-badge]: https://img.shields.io/npm/v/@stencil/router.svg\n[npm-badge-url]: https://www.npmjs.com/package/@stencil/router\n","browser":"dist/stencilrouter.js","gitHead":"e05607f8eeb792de93b3cab1365ea697bc260ac0","license":"MIT","scripts":{"dev":"sd concurrent \"stencil build --dev --watch\" \"stencil-dev-server\" ","test":"jest","build":"stencil build","serve":"stencil-dev-server","start":"npm run dev","deploy":"npm run build && np"},"_npmUser":{"name":"jthoms1","email":"jthoms1@gmail.com"},"homepage":"https://github.com/ionic-team/stencil-router","collection":"dist/collection/collection-manifest.json","deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/ionic-team/stencil-router.git","type":"git"},"_npmVersion":"5.8.0","description":"Stencil Router","directories":{},"maintainers":[{"name":"adamdbradley","email":"hi+adam@ionicframework.com"},{"name":"brandyscarney","email":"brandy@ionic.io"},{"name":"camwiegert","email":"cam@camwiegert.com"},{"name":"ionicjs","email":"hi@ionicframework.com"},{"name":"jgw96","email":"jgw9617@gmail.com"},{"name":"jthoms1","email":"jthoms1@gmail.com"},{"name":"kensodemann","email":"ken.sodemann@gmail.com"},{"name":"manucorporat","email":"manu.mtza@gmail.com"},{"name":"maxlynch","email":"max@ionic.io"},{"name":"mhartington","email":"mikehartington@gmail.com"}],"_nodeVersion":"8.9.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"^2.16.0","jest":"^22.4.3","ts-jest":"^22.4.2","@types/jest":"^20.0.8","@stencil/core":"^0.7.20","@stencil/utils":"latest","@stencil/dev-server":"latest"},"_npmOperationalInternal":{"tmp":"tmp/router_0.0.29-4_1523570412292_0.015530590060805594","host":"s3://npm-registry-packages"},"_id":"@stencil/router@0.0.29-4","version":"0.0.29-4"}