{"_id":"@bouncingpixel/express-view-routing","_rev":"11-e6baf2fbeec965acd49d3660a68b7a4d","name":"@bouncingpixel/express-view-routing","description":"Generates routes for Express based on the file structure of view files","dist-tags":{"latest":"0.2.0-beta"},"versions":{"0.1.0":{"name":"@bouncingpixel/express-view-routing","version":"0.1.0","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"6.x"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.0","_shasum":"67ff4bd91c54297284d6afe5902b2430127171de","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"67ff4bd91c54297284d6afe5902b2430127171de","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.0.tgz","integrity":"sha512-+RkE48Rb2TXC669XaiPW50zoHeXIZp1JPU9t40lpKiXZKpbWK6V1O46izJrhf1cKaT8SQTtfkdT2D5H423db9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ0C7JW6Q/zZ6nmd9m2wnt+qbfydeHvNL1jw2YD+ELXAIhAL0SJbdFHjMQPgHcgoJJ3RSsxD1ysUZcW4ciCJl0i99w"}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.0.tgz_1496874090564_0.737905042944476"},"directories":{}},"0.1.1":{"name":"@bouncingpixel/express-view-routing","version":"0.1.1","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"6.x"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.1","_shasum":"c085a834a2d1db215a7e1806988bd05b98289102","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"c085a834a2d1db215a7e1806988bd05b98289102","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.1.tgz","integrity":"sha512-2KKPDyf+HaFKmf1HAVxWHKhc5QygfKYwGWk4N4xSe3tYuTjyEr/SoXHI81tZ9e45wcim1rBfoZpBjWwG9MwOTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrtGKeCEnftCyPejLq7Pv4bvsg2FbPvKJPO+e4rSpChAiAIKekc/LVVyDGMAxbONbLhcPLJs1W6c4akQVOTg9ulqA=="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.1.tgz_1496874379734_0.28418748546391726"},"directories":{}},"0.1.2":{"name":"@bouncingpixel/express-view-routing","version":"0.1.2","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"6.x"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.2","_shasum":"7dec27f929716b70dc694db4dcf39516e6e6f92c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"7dec27f929716b70dc694db4dcf39516e6e6f92c","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.2.tgz","integrity":"sha512-2L5qw4Fy0yF57n78rxbY4i6qT20UyVtVeYqPt0t/XI0R1D4ehg3k0JbP9Ta2Gu9jEN2wfAsx9y+2IqXal+6g/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLIC1jiFapxvTAPf/k1fpl9oGyoU3hpgnzBk0HF/PYDwIgRHMnzHRptr3JnZjSnp4mWphcqjTappKH5zuKCg2ELtU="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.2.tgz_1496936277925_0.16034993482753634"},"directories":{}},"0.1.3":{"name":"@bouncingpixel/express-view-routing","version":"0.1.3","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"6.x"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.3","_shasum":"a7ebc63d6b50e76fa272a4a1a7364bee81f3e2fe","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"a7ebc63d6b50e76fa272a4a1a7364bee81f3e2fe","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.3.tgz","integrity":"sha512-pCaaDjsrfX75gsK5AVuiCWviN2NDWxSCcYjMd733I0OemuZcH43VNcn0uBl5ej0cmVGKkM8PMbIY2BH+w7sFQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAfz6DF0r2dKOHGFnf+at/LcV2NJdj+kGfDmyyhKKSyDAiBAvBlfOGjrGHdfQjA2JY8f/9Hh33qml8rs/twQNu2BiQ=="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.3.tgz_1496951984069_0.8760416312143207"},"directories":{}},"0.1.4":{"name":"@bouncingpixel/express-view-routing","version":"0.1.4","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"6.x"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.4","_shasum":"249f664eb59387aa3a3f4565a090ff483de66c5d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"249f664eb59387aa3a3f4565a090ff483de66c5d","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.4.tgz","integrity":"sha512-EH77aLptY7Ol1cnDeAEkyNfrCYf44adXCsQLqLqsrB4rP82OVDQOFkV/xU7qXKJrMXlkK/EbH62wIfh5aO8fjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFnGigPISGIbifXOpdaJwqFY9TQCUKWDitd5JU4xA8bAiEArMJzfjmwNy6h04KpOfdFqd+DLSyNgbFsKFD9wMR4No0="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.4.tgz_1497275736243_0.9738202253356576"},"directories":{}},"0.1.5":{"name":"@bouncingpixel/express-view-routing","version":"0.1.5","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"6.x"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.5","_shasum":"eccc630b6084f2c52e6f3320f787596db0364860","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"eccc630b6084f2c52e6f3320f787596db0364860","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.5.tgz","integrity":"sha512-bwSDAnES3euzm1CEdjJM9EnELjyJ20TuoKfN2TWKT4DWC4sdstTMq68MYfPk14ka17q7uU9U0XLpuHM2Po5COA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJGVjwvuPzqNN+A8c027RDMNUbHA0Bb1sDy9Dvtyf4yAIhAN/6giNbYWvhXM6W0VhWN++X5VFazB7VUpMWGjORujNo"}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.5.tgz_1497278718952_0.6209263878408819"},"directories":{}},"0.1.6":{"name":"@bouncingpixel/express-view-routing","version":"0.1.6","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":">=6.9.0"},"dependencies":{"resolve-path":"^1.3.3","winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/express-view-routing@0.1.6","_shasum":"3d3817be0f0ba207948d5ef277ae0dcfff770c5d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"3d3817be0f0ba207948d5ef277ae0dcfff770c5d","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.1.6.tgz","integrity":"sha512-3TqTueToavsjlos2O2O/UEYMw6M1rJ+EBJL38kCxrZbRoD+BXVTCxKNWDFxxMCljO2wSxenIsGW5MbwCqASuOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFV1vcy3CZxEK+3x9Xg4JiZyUHzYFphHSB9bFphynhbOAiAyWfGqgamizzIpw5ceS3hKFU4LY0XEbbQAo95ypalTUg=="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing-0.1.6.tgz_1503085143779_0.02965759951621294"},"directories":{}},"0.2.0-beta":{"name":"@bouncingpixel/express-view-routing","version":"0.2.0-beta","description":"Generates routes for Express based on the file structure of view files","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"license":"MIT","bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"homepage":"https://github.com/BouncingPixel/node-packages","engines":{"node":"^14.x"},"dependencies":{"resolve-path":"^1.4.0","winston":"^3.3.0"},"peerDependencies":{"express":"^4.17.1"},"_id":"@bouncingpixel/express-view-routing@0.2.0-beta","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-NOKNLDhTAf7h8rS1DDS7Vsb8ecSQB6BZUosURuhHBQBHMXCn20xDcl5w/nH8cMXakUwLkPb9zRv7Xal9FlzyKg==","shasum":"051d31583633996c52995a27ee4176959cd5a8cb","tarball":"https://registry.npmjs.org/@bouncingpixel/express-view-routing/-/express-view-routing-0.2.0-beta.tgz","fileCount":8,"unpackedSize":12380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBxWjCRA9TVsSAnZWagAAPvwP/2+dGqbq9fIOVIdlId7F\n/woQzX/prJqrazFd9YMxy1HJQPgQC7PtLcG5fyYm6/TqBB9bhpwBBG8Fr84L\nt2OYjjV7xnGYQaoszFaUFxwCpmk78KBJTwZ/as3+dg0vdyuD4SxKRbRLqu7N\ninvrM6YFK1k8KjYSkweRS4/Uz2zih386F0KtghOvLa9ksgMydZI2KYWRVdTs\nSZ4yOjzaNpn+2Mg7n0rIeAve4AA0IX7L9uWhup7CNHjWVRz75QlvDsI23ltG\nsXtSWsOmMcvQ1+XIdShJPxEHDDSK00XBcyTK5MGLXt1T3cZQL/ks6xt8ev4G\nwDrApFme23QJpuT0w7muh9RxTtq7GhjDC64aoghORDjThffDxI0GYNqrvhIQ\nimuPxd2kEIeo1tfHgpz8aTB3A5QUgA6mtpgYTv1P7uDv/sKrIs0IsriVVgBN\nldJUBmxSA4z975NbTdsko4GXzVxsewIUfP3fP7aSmeb4Lx6JmEbZNA31/big\npKAIDdaribU+b/TdwguBDF07mpwYvJfGakBiCmAcOZS3nzAZ6BVanFA4Qtbk\n8ZI43O1sPEA0Sm8u795ukz3YM0W8UFodho7aO/+llDEgMvjVmdgxer4bod5W\n/MzMUrSheH+i6eTOvVK1GHDPVjOpS+lTUYSeF88ScXA1gn5CtWtrm4vR1VVT\nbwhq\r\n=L5vj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJh/g552QSspFXUAOFbeIkmxCcz/0pblKCFflRPnNA0AiBPUGVh7IftkSWavVXdCi9SIUY9IgI0WyIeHqONDis1BA=="}]},"_npmUser":{"name":"hallmatt","email":"mhall@bouncingpixel.com"},"directories":{},"maintainers":[{"name":"hallmatt","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-view-routing_0.2.0-beta_1611077027104_0.0724862505182271"},"_hasShrinkwrap":false}},"readme":"# express-view-routing\n\nAutomatically generates Express routes for view files within the views directory.\n\n## Working With\n\n### Requirements\n\n- NodeJS 6 LTS\n- Express\n\n### Using express-view-routing\n\nThis package has two modes, development and production.\n\nIn development, the package will search for the file to use on every request.\nThis allows developers to add, remove, and change files on the fly without restarting.\n\nIn production, the routes are determined at load time and cannot change.\n\nTo use the package, simply require it in and pass in the directory to your views folder, the folder name containing the pages to generate routes for, and the file extension of your view files.\n\nSubdirectories will be navigated properly.\nTo create a route for a directory, create an index.dust (if dust is your extension) file in that directory.\nThis route will work with and without the ending slash in both production and development.\nThis is to match the behavior of express which does not require the ending slash.\n\n```js\napp.use(\n  require('@bouncingpixel/express-view-routing')(\n    path.resolve(process.cwd(), app.get('views')), // path to the views directory\n    'pages', // folder within the views directory for the pages to generate routes\n    app.get('view engine') // the extension of view files\n  )\n);\n```\n\n#### Path parameters\n\nPath parameters can be added as a route component by using an underscore before the path name.\nFor example, given the following directory tree and assuming `.dust` is our file extension:\n\n```\nviews/pages/\n├─┬ dashboard/\n│ └── index.dust\n├─┬ blogs/\n│ ├── index.dust\n│ └── _post.dust\n├── index.dust\n└── login.dust\n```\n\nThe following routes will be generated:\n```\n/\n/dashboard\n/blogs\n/blogs/:post\n/login\n```\n","maintainers":[{"name":"hallmatt","email":"mhall@bouncingpixel.com"}],"time":{"modified":"2022-06-12T15:26:48.412Z","created":"2017-06-07T22:21:32.147Z","0.1.0":"2017-06-07T22:21:32.147Z","0.1.1":"2017-06-07T22:26:20.647Z","0.1.2":"2017-06-08T15:37:58.829Z","0.1.3":"2017-06-08T19:59:45.001Z","0.1.4":"2017-06-12T13:55:37.435Z","0.1.5":"2017-06-12T14:45:19.932Z","0.1.6":"2017-08-18T19:39:04.644Z","0.2.0-beta":"2021-01-19T17:23:47.217Z"},"homepage":"https://github.com/BouncingPixel/node-packages","repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/express-view-routing"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"license":"MIT","readmeFilename":"README.md"}