{"_id":"@bouncingpixel/auto-static-routes","_rev":"7-97e4f75930a0ba80861a89ac1eaa72f6","name":"@bouncingpixel/auto-static-routes","description":"Generates express routes automatically for static dust pages","dist-tags":{"latest":"0.4.3"},"versions":{"0.4.0":{"name":"@bouncingpixel/auto-static-routes","version":"0.4.0","description":"Generates express routes automatically for static dust pages","main":"index.js","scripts":{},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/auto-static-routes"},"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":{"winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/auto-static-routes@0.4.0","_shasum":"eeba88aef3811144bde3e3c72113fdc1b4822a7a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"eeba88aef3811144bde3e3c72113fdc1b4822a7a","tarball":"https://registry.npmjs.org/@bouncingpixel/auto-static-routes/-/auto-static-routes-0.4.0.tgz","integrity":"sha512-L4oIMgEDwp6badOhR43uLO8NFYlDyCugJ2gCQHgoAj+RjpoO6zLe84mb9FMD7Yos1x4iGOP9iWoQxvIF/rID5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAqU8MSEbQLn3BHJ/Rrm5SJTlNbtHFbZ6UWl54/5G8VAIhAK/DOiYWGz5JJvHI4qfP3UNVKeT9i25hd+Snhe6quykt"}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-static-routes-0.4.0.tgz_1495489954538_0.5800980648491532"},"deprecated":"This"},"0.4.1":{"name":"@bouncingpixel/auto-static-routes","version":"0.4.1","description":"Generates express routes automatically for static dust pages","main":"index.js","scripts":{},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/auto-static-routes"},"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":{"winston":"^2.3.0"},"peerDependencies":{"express":"^4.13.4"},"_id":"@bouncingpixel/auto-static-routes@0.4.1","_shasum":"44978b8987e76ce6b7e296eaba361cc3cfb25005","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"44978b8987e76ce6b7e296eaba361cc3cfb25005","tarball":"https://registry.npmjs.org/@bouncingpixel/auto-static-routes/-/auto-static-routes-0.4.1.tgz","integrity":"sha512-MXeF9fXrM5EEXdLpNa8I8Yuw4iy9J4Yw3nzqm3wPcHS/CCQ26UOsq6SUlUhfeMOjzLcfr0adCECELvbRlacfWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlv0KxHytdz8sGMPDQ4EaU4EzYoIUPVluLnIm4Jas9BAIhAN4kZrCrODkZitNVLHhuMezchBzgS1mCzlocNgmHf5ff"}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-static-routes-0.4.1.tgz_1495746501092_0.8804412519093603"},"deprecated":"This"},"0.4.2":{"name":"@bouncingpixel/auto-static-routes","version":"0.4.2","description":"Generates express routes automatically for static dust pages","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/auto-static-routes"},"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/auto-static-routes@0.4.2","_shasum":"263ac7eed7ce8fb77b111df68474bdc09ad47763","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"263ac7eed7ce8fb77b111df68474bdc09ad47763","tarball":"https://registry.npmjs.org/@bouncingpixel/auto-static-routes/-/auto-static-routes-0.4.2.tgz","integrity":"sha512-WV//6hxavAsWLmUyDk6myh+wLchMvjak63GU9wcezVwMGc3Hhj5yhLAYAzbbfQAsKZqwNAGxTeZ5DMs4aCKobg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3AvpNvL4lIWsx0pFA4ofOQEyK1VyeqWW0bNKPvdyVVQIgKpJwK499oGeDrXiKXhtpCZkdq08pSRt/e+SN4rukm1U="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-static-routes-0.4.2.tgz_1496262882177_0.9391199974343181"},"deprecated":"This"},"0.4.3":{"name":"@bouncingpixel/auto-static-routes","version":"0.4.3","description":"Generates express routes automatically for static dust pages","main":"index.js","scripts":{"lint":"eslint index.js src"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/auto-static-routes"},"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/auto-static-routes@0.4.3","_shasum":"05cf0784b57e11013bafd7063d7f244771c89633","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"},"dist":{"shasum":"05cf0784b57e11013bafd7063d7f244771c89633","tarball":"https://registry.npmjs.org/@bouncingpixel/auto-static-routes/-/auto-static-routes-0.4.3.tgz","integrity":"sha512-Ob+xVXvOFfIUxH6p08nM8GbmIEMF5+O54UAq2hmz6qEd6Sw2wD3ARcgRs6XQp0W34985PERcIRlyc24WFTZdmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv5aY5u/d74fzWQTgheEE+4JHOazLQS6WvuWIL81R8ngIgHvlHUfa8h2gCIaipdNA5/bAd5Au7rxBYOMbUwMYBe20="}]},"maintainers":[{"name":"bouncingpixel","email":"mhall@bouncingpixel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-static-routes-0.4.3.tgz_1496264340919_0.41257681185379624"},"deprecated":"This"}},"readme":"# auto-static-routes\n\nAutomatically generates Express routes for Dust files within a directory.\n\n## Working With\n\n### Requirements\n\n- NodeJS 6 LTS\n- Express\n\n### Using auto-static-routes\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\nalong with the folder name containing the pages to generate routes for.\n\nSubdirectories will be navigated properly.\nTo create a route for a directory, create an index.dust 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/auto-static-routes')(\n    path.resolve(process.cwd(), app.get('views')),\n    'pages'\n  )\n);\n```\n","maintainers":[{"email":"mhall@bouncingpixel.com","name":"hallmatt"}],"time":{"modified":"2022-06-12T15:26:46.779Z","created":"2017-05-22T21:52:35.464Z","0.4.0":"2017-05-22T21:52:35.464Z","0.4.1":"2017-05-25T21:08:22.073Z","0.4.2":"2017-05-31T20:34:43.213Z","0.4.3":"2017-05-31T20:59:01.792Z"},"homepage":"https://github.com/BouncingPixel/node-packages","repository":{"type":"git","url":"https://github.com/BouncingPixel/node-packages/tree/master/auto-static-routes"},"author":{"name":"Matt Hall","email":"mhall@bouncingpixel.com"},"bugs":{"url":"https://github.com/BouncingPixel/node-packages/issues"},"license":"MIT","readmeFilename":"README.md"}