{"_id":"@allain/surplus-router","_rev":"5-cede7c51cabacaaff2afd4750445fbe1","name":"@allain/surplus-router","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@allain/surplus-router","version":"0.1.0","description":"Simple router for use with surplus","author":{"name":"Allain Lalonde","email":"allain.lalonde@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/allain/surplus-router.git"},"main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepare":"npm run build","predeploy":"cd example && npm install && npm run build","deploy":"gh-pages -d example/build","lint":"eslint ."},"peerDependencies":{},"dependencies":{"path-to-regexp":"^2.2.0","s-js":"^0.4.8","surplus":"^0.5.2"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^8.2.1","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","eslint":"^4.18.2","eslint-config-prettier":"^2.9.0","eslint-config-prettier-standard":"^1.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.9.0","eslint-plugin-node":"^6.0.1","eslint-plugin-prettier":"^2.6.0","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","gh-pages":"^1.1.0","rollup":"^0.54.0","rollup-plugin-babel":"^3.0.3","rollup-plugin-commonjs":"^9.1.0","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-surplus":"^0.5.0","surplus":"^0.5.2"},"files":["dist"],"gitHead":"4441ee7d3493b93a854ae86e05ed9a4d762ebb84","bugs":{"url":"https://github.com/allain/surplus-router/issues"},"homepage":"https://github.com/allain/surplus-router#readme","_id":"@allain/surplus-router@0.1.0","_shasum":"8aaf6b2f771666f321664bb446acdb4d47e27162","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.9.1","_npmUser":{"name":"allain","email":"allain.lalonde@gmail.com"},"dist":{"shasum":"8aaf6b2f771666f321664bb446acdb4d47e27162","tarball":"https://registry.npmjs.org/@allain/surplus-router/-/surplus-router-0.1.0.tgz","fileCount":4,"unpackedSize":8963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa242VCRA9TVsSAnZWagAA7i0P/3ZEwJUDoOQYgBAdqSgZ\nX3HVOJ8amKD1TkO4ATTbas4DE+mWljRDTJMz/7zeU0iQqVJ5h0Be5M2ukfm5\nh9ngjltcVPaCXlZt9J3UYBucAKvkbZgex3ym0Q4NFROH/clGnys33dBdGNlf\nxSmbSDbg3zBZ+KevUb9mFDD+ZOhFOnuBRthxdL83huxYFGDdMa5Wsb9HsrXe\n/aNsGqB9iECJPzUSeCviuxFd/z0FA6R29kJ4FNH//k3wKDdZaYvfhJSeHatz\nF94Crw8INIU3DUL+OogYLsnOZKjnCmqhBrTtDVYxhVpdqHEbxa2kpe+E0wG9\nfHqeAr6aGtVze6fpMO8nI4Z6pdg0OcV9C7IQnU6iuEtlFFmPWHFYksl2pnHW\nHNEOPV+ejUyfcF6vtCRECRMuAytd7u0Hd6bA5U0fzuEfZFpZGPCKVWTlUwg/\nUgpWk5Lu8D1Z4bR/dEvJjsqoVWt0zHm+LzP1hYFkFSRGB2eKqIj5R/x5l9LN\nJGekdmvhFs+bMcbIb330wRDvsFoQwH/ZnDNtFGYD2cPTYb5AMviiPZndEpgi\nOA0c0dqW4kAoAKddulCZfeaqQ//dPkJ3o+hJ3PSHDpzPXR7HJg2veMeAkQ7/\nBgrcIyP88c4IQ5tHbh2sTXj8pTXzuMGSrjeaZ9+Yken7KX7uap9Z5N4FgBhA\nyBTh\r\n=/AFc\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-u0ldmqlGOorTXrMM8TXUAgl0v3J9LOSqsENKX0h5vwDPSGuUv8iIFBSrVEZFSNetV1TQDNUnFsewlVaooPWQSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ+8YfndnN/p4oZNi7OLUgBK/+Kyrl9JDiSrIYlweKnAIhALZdzWrmZ1xzBFWp8g3SQhtjt7V8CHcIrh7w1HdzWdkA"}]},"maintainers":[{"name":"allain","email":"allain.lalonde@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/surplus-router_0.1.0_1524338068846_0.0026397680989724837"},"_hasShrinkwrap":false},"0.1.1":{"name":"@allain/surplus-router","version":"0.1.1","description":"Simple router for use with surplus","author":{"name":"Allain Lalonde","email":"allain.lalonde@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/allain/surplus-router.git"},"main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","scripts":{"test":"jest","build":"rollup -c","start":"rollup -c -w","prepare":"npm run build","predeploy":"cd example && npm install && npm run build","deploy":"gh-pages -d example/build","lint":"eslint ."},"peerDependencies":{"s-js":"^0.4.8"},"dependencies":{"path-to-regexp":"^2.2.0"},"devDependencies":{"babel-core":"^6.26.0","babel-eslint":"^8.2.1","babel-preset-env":"^1.6.0","babel-preset-stage-0":"^6.24.1","eslint":"^4.18.2","eslint-config-prettier":"^2.9.0","eslint-config-prettier-standard":"^1.0.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.9.0","eslint-plugin-node":"^6.0.1","eslint-plugin-prettier":"^2.6.0","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","gh-pages":"^1.1.0","rollup":"^0.54.0","rollup-plugin-babel":"^3.0.3"},"files":["dist"],"gitHead":"d78a79c25ca0dfbbbaf27b85be61e489ba328846","bugs":{"url":"https://github.com/allain/surplus-router/issues"},"homepage":"https://github.com/allain/surplus-router#readme","_id":"@allain/surplus-router@0.1.1","_shasum":"02b05281cb12080a2a0575639a5b2535dc283648","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.9.1","_npmUser":{"name":"allain","email":"allain.lalonde@gmail.com"},"dist":{"shasum":"02b05281cb12080a2a0575639a5b2535dc283648","tarball":"https://registry.npmjs.org/@allain/surplus-router/-/surplus-router-0.1.1.tgz","fileCount":4,"unpackedSize":8489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa25QjCRA9TVsSAnZWagAA5BgP/iyJYibUxhSqhDSl58E0\nvao6VMr/k4U5BxYyVhqejfECxN/vi5sM3PIsx1g3mKeHsDEfYPvYns+8xVnn\nALjNJ2nEP+7bIrth1rsotjSNcyop8JjsPggIdQscpQdegtSqEZFEsBOGb7KY\ndXSK1RTtX/2sJw//Von4lH40wseiolGZ1fq90R3jha5pO20tTWuXyOR6076z\nFu2vM84UP8hb9aJ1FSeROuAKvhwlJn+RDhjugQ1ehVtL2pB7QGFbs0iwyZ7Q\nsTG32HD3/CAgWZyXkaBCUfkWck/QbHU56QGh3jVMZjxzvUlvETgmCq46Te5i\ncqezPtJL9FBFchJSFThq/np0+r7yHu+bZEby2JDU89kgxsDXAw3aSfD3xwHo\nQdWEB0w2soJvzyf1OOXkpO26V4FYwgQOnRwBlwQ4lpBYuOf9jxOyRkSdynCN\ndtMJuTeQCpXbkhi5lr7EWg11cOBQoBOs3Z8BDpue3Vwg1jl+m2U23P38WXNi\naJQCriFlYndD8pb47Vc8AHdWgE9PMWqdy0HhI5bN4nsEQ5PhYBJc3GAJZ/ws\nvZeruxnfw9n5CiK2ohn7GgDEeauNCT4FIoLRkmHpsVz718JduUaDO4ed06gc\nUQqx/TOxdS67GevWUiBE+qdnQNGww1E9BceJNLOs/xkekWEFqupygO2/0Itb\ntYRP\r\n=P+0g\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-+QtOfjXNiJCUcd8Hq41BULskrnUcO491NdURAuNYrWE/0ricAS4u02mgUOCDltlTsthGDEh1MICaihqHJ6K2Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBWhNUnUjFfFUGOqeqvipPL5FzpYoAA5nEz1cxIv/qDAiEAlf8NOIV3e45KleRf8jHkszuc9gPUBwcrqBYzIiB2kgk="}]},"maintainers":[{"name":"allain","email":"allain.lalonde@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/surplus-router_0.1.1_1524339746624_0.8526690281261047"},"_hasShrinkwrap":false},"0.1.2":{"name":"@allain/surplus-router","version":"0.1.2","description":"Simple router for use with surplus","author":{"name":"Allain Lalonde","email":"allain.lalonde@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/allain/surplus-router.git"},"main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","scripts":{"build":"tsc && rollup dist/es/index.js -f \"umd\" -n \"Route\" -o dist/index.js","test":"jest"},"dependencies":{"path-to-regexp":"^2.2.0","s-js":"^0.4.8"},"devDependencies":{"rollup":"^0.54.0","typescript":"^2.8.3"},"gitHead":"1ada1f231a09483115aecd89e4188f8da2e199bf","bugs":{"url":"https://github.com/allain/surplus-router/issues"},"homepage":"https://github.com/allain/surplus-router#readme","_id":"@allain/surplus-router@0.1.2","_nodeVersion":"10.16.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-dVu2ZHOpz3Ctgeitm5wYbYyGxxtAV4O1SEA0T3djiUWuVM8tXYTANTcUpyhHD/dwqPXINZpJVXw4iLcIZYpK4g==","shasum":"d139cecd886ab0be03d117f88a31fd3e1773d32b","tarball":"https://registry.npmjs.org/@allain/surplus-router/-/surplus-router-0.1.2.tgz","fileCount":9,"unpackedSize":10198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQHL4CRA9TVsSAnZWagAAgTgP/3a0XR5/kGE9/Menf3s9\neX7aPRGyOCISyzYtv5C0DNoJR3bu2W6LQEGwvU47oop/pf5biAhoPUclhnOL\nAMN8q0sX6FtLMmT8+JGP7EDa4U8M6cROCKZsyZbbD8yDsNZyzXhct2X4HUaU\nv2cFdgS/QP5ktAdhpyBQLkTsnOf5cCjkD+02qFGVhwgLmEQDmQ+OsEr8oNGS\nDvWHgZb7XVIkgBi8VLDsPWa5Q8JUVBZQATx0Q8KuI1AcR3zdvpN+nq4QOx/S\nX1cznZqJikRxFJ2yGqcxz+UvHu175HG8q5EqwPMQbvhDjazQZwFApVMrthek\nvtf5MCo0RaKD8e+tIsJsoY594ViGx8e2uEsFm/yTG5Czx/m7DzJ1m+EfUGeL\nVHzVzIYBhmEPONtKXM30bj+P8anAveJDVA62mmoNkfchfDlUvRgNj64uBQ4p\nm5rlAGWjwXb8cD/51oiPmGjPpTqWQIFwESJxnBVeJYmqWDxCzvE/kWMP1D/H\n94rQtC/NQse4zHf1iHg0GKhkcA+Hz1NMIhUXoHLveywnsOaVSUe7eDss4vd6\nwdeqkDDt043BN3q/wXz6uDjU+SXYCrN7Bb5Ub6gpUG6P8X3qU+ou4w6DAHE2\nhn/q3vGe03sG3b2ya7JRf4uUC9jeXCPFGHSfw77CY/J64L0I1oqprW1HwFo1\nob1h\r\n=F2On\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDeCHx9rf/uTnOn2e8M9iHjO5SalQYwueZT17Vo2kUR7AiA0wAUyvZdZv8PW4pC7o9K2whO8MZ5WBMO+17tYQEtbsg=="}]},"maintainers":[{"name":"allain","email":"allain.lalonde@gmail.com"}],"_npmUser":{"name":"allain","email":"allain.lalonde@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/surplus-router_0.1.2_1564504824331_0.13433783878643202"},"_hasShrinkwrap":false}},"time":{"created":"2018-04-21T19:14:28.795Z","0.1.0":"2018-04-21T19:14:28.932Z","modified":"2022-06-12T14:33:44.413Z","0.1.1":"2018-04-21T19:42:26.689Z","0.1.2":"2019-07-30T16:40:24.421Z"},"maintainers":[{"name":"allain","email":"allain.lalonde@gmail.com"}],"description":"Simple router for use with surplus","homepage":"https://github.com/allain/surplus-router#readme","repository":{"type":"git","url":"git+https://github.com/allain/surplus-router.git"},"author":{"name":"Allain Lalonde","email":"allain.lalonde@gmail.com"},"bugs":{"url":"https://github.com/allain/surplus-router/issues"},"license":"ISC","readme":"# surplus-router\n\n> A simple router for use with Surplus\n\n[![NPM](https://img.shields.io/npm/v/surplus-router.svg)](https://www.npmjs.com/package/surplus-router)\n\n## Install\n\n```bash\nnpm install --save surplus-router\n```\n\n## Example Usage\n\n```jsx\nimport * from Surplus from 'surplus'\nimport { Route } from 'surplus-router'\n\nconst view = <div>\n    <Route path=\"/\">\n      <h1>Main Page</h1>\n      <p><a href=\"#/test/123\">Test 123</a></p>\n      <p><a href=\"#/test/456\">Test 456</a></p>\n    </Route>\n    <Route path=\"/test/:number\">{({number}) => <p>Test {number}</p>}</Route>\n  </div>;\n\ndocument.body.appendChild(view); // add view to document\n```\n\n## API\n\n## License\n\nISC © [allain](https://github.com/allain/surplus-router)\n","readmeFilename":"README.md"}