{"bugs":{"url":"https://github.com/ionic-team/stencil-router"},"dist":{"shasum":"6de8f7930d5b9e05c94ca629c31cdce5ec44502c","tarball":"https://registry.npmjs.org/@stencil/router/-/router-0.0.29-8.tgz","fileCount":91,"integrity":"sha512-kitt6zWszP6bTSKRRu6S3nhU8cPskn1FgcWn3wz/Xe8VaFsyt0sOiQFo6Jd9OVERzeWmGIwN+Lt7Yxcix5s/kA==","signatures":[{"sig":"MEQCIF2NoBCHrlPyYZtOaOyZLdN9r4y610RgxRvIpPfz/qmDAiBVcNRqDWw4ZKyZeY1I6ChF8TeCTTalkh0LmSzMdnW3SQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":279616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1UnXCRA9TVsSAnZWagAAxFsP/1OSWxyLQF95QVPYjB9B\nnhA0Hd3w6WRmkcUOS7jWWX0J+hbQlQicYo8x0IzuK2tiHS5KRTw7hnkuuNtw\n5ixMYVOeGPgJSzCuwJPeYkugbrmGpI629RDLVDCo3IRq9wua7xtx5IKX6oat\nIjOySuZ2qr6FyjnaU+n2qhqbRhWtAGJxc/vprkNPUflXlJ8q0Uss0+PeoTLJ\nD9Dq4BBawd3p+kHrKTeEEdzDDq9namn+S2syFmCeVWsM+fdQVrpXeftby1B8\nKGO3TNgAyToVwYT4I+Gfu/X6ePNv6m+ngX90OQ/LxPeVTmx8txhZe/Z12ucE\nl8IvT81XTbhXT/xetZm7cndwLx+slQWXubDgFTnCZiEC3LXTJl0dwFe60OSE\nBy3x3592BunR5jfFd0hBqlH20TlEsKpAvVNmSe7sQuS7sak40JGSXE+jXvrS\nZqehioZBGt8/Zov0v1wM9eeWhLjP7LjZfcNRswy5N0FIG6zXyHKIif4eA+9V\nP8wIBkbRqEgwysZs7jsFnDWqG5yD/wdXkh/uQtfEa33s1ZhIdjBVZUr6aJGu\nuimM95FuBB5z93Yx+IHRmxR21SEIkhpD4beMNTjsWMpBVgVnO3c4MOgT2Yze\nsVDkB1G9cdZXOonXZ435tkWC1dLtDT/lRLaph8y9TCGX5ia07xBm2FTs2DXF\nypgk\r\n=34XT\r\n-----END PGP SIGNATURE-----\r\n"},"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":"b73066764976ce5ec9c0b9122189e709d1badb77","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.23","@stencil/utils":"latest","@stencil/dev-server":"latest"},"_npmOperationalInternal":{"tmp":"tmp/router_0.0.29-8_1523927511156_0.8415406650734867","host":"s3://npm-registry-packages"},"_id":"@stencil/router@0.0.29-8","version":"0.0.29-8"}