{"_id":"express-autoroute","_rev":"33-74e07c418ed7d5f075ba009094afa290","name":"express-autoroute","description":"Express Auto Route automatically load routes from a structured routes/ folder","dist-tags":{"latest":"2.1.1"},"versions":{"0.0.1":{"name":"express-autoroute","version":"0.0.1","description":"Automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"vows test/*"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.6.2"},"_id":"express-autoroute@0.0.1","dist":{"shasum":"dd901a0c3fafc73a6b6aacd906a73168560a83d1","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-0.0.1.tgz","integrity":"sha512-IZbrFsZE8RDTQIt7cn3Dixfb30k6DMDdU+7bxvgvkLI2Z9nnDkx0SKv0ywRSrlRN1YaM4nLOIGzVqXYZWWoa+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/13FRNVXvn6xgpnWto3EC1Fx6gbGYCxkhzql5oJ5vlAiEA+L7ORcnNb9LlYMFoIyEXHVni4uysut7TZFtEabaCCvE="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"real_ate","email":"acb@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"0.0.2":{"name":"express-autoroute","version":"0.0.2","description":"Automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"vows test/*"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.6.2"},"_id":"express-autoroute@0.0.2","dist":{"shasum":"35dae087a1041b6df8070ae94c0497ca6af284ec","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-0.0.2.tgz","integrity":"sha512-3AgnwIG//mcyseqgFWFs0A1wgwy3bDsLuSok8O1nO6zHK2DodrpIWzx3qTlHj6pS4pSsNhdnSbwv+h5hquHS3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnuZ6xm4KRXDwo5csG3p4N7s9eg1c+0XVm9vzu+dYIGwIgEwzT1EjU1esGZ580M5j1QmpF0h5F/hoOvbNfGEAm8/s="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"real_ate","email":"acb@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"1.0.0":{"name":"express-autoroute","version":"1.0.0","description":"Automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"vows test/*"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.6.2"},"_id":"express-autoroute@1.0.0","dist":{"shasum":"e72f81940aaaa12abb22c509019061e7cd3862f3","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.0.0.tgz","integrity":"sha512-4qI5Inxh0jkZoCAwVoXgBYLziG/5O1kPeY9jHg/aExsFWwKHS/CfSyMU7YANL124KZ4GULN1+j5x9KmssAUFXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNeeXkkA7SXK5BSdqc/WV7bh/EpozbEUDjzaZ/PfGWfAiEAk7mZ75E3PT3UG6nDNN6rohlfFUcTyKRsrNFtfdI6UhI="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"real_ate","email":"acb@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"1.0.1":{"name":"express-autoroute","version":"1.0.1","description":"Automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"vows test/*"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.6.2"},"_id":"express-autoroute@1.0.1","dist":{"shasum":"c6c350becbd03f55d27999cd0a7e553f011f184a","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.0.1.tgz","integrity":"sha512-VuE0Euv+MFD1QMSYfou5bwz7ZTeSsui4Da5svKiR4QmXLmTlaiQapiUPhAQ9hPVMhqhmX+Y4RilSLBGipo5yjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6RKivpv6rEXNNCtZemHCjxBNW1uQtZ4FlSJ6GNKrRGwIhALFoN8ePv8Qfg5YTFFdLPGsaA8eUo0sC6mz1hihND8Kt"}]},"_npmVersion":"1.1.69","_npmUser":{"name":"real_ate","email":"acb@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"1.1.0":{"name":"express-autoroute","version":"1.1.0","description":"Automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"npm run test-node","test-node":"mocha"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.7.2"},"devDependencies":{"chai":"~1.9.0","supertest":"~0.9.0","mocha":"~1.17.1","express":"~3.4.8"},"bugs":{"url":"https://github.com/Blooie/express-autoroute/issues"},"homepage":"https://github.com/Blooie/express-autoroute","_id":"express-autoroute@1.1.0","dist":{"shasum":"95f1362f013e46cd1ac61112667acd70b9c1fbfc","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.1.0.tgz","integrity":"sha512-euOpyQdWlNg48Z6S0LWNuUK4l3d0OTdqduWocCbG2/7Ev6zf7fRDBMEZGYnH8X9C9M14WHnbE3BOR6DLCNsd7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFppptGpTF0bVbpoi2qBka5ZyD44o2zUaGDp4+CLTRgkAiEAhb/vSA9i6mzCRpa8PrhIsy6dNCfxsUb1abZqtSUqiZk="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"real_ate","email":"acb@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"1.1.1":{"name":"express-autoroute","version":"1.1.1","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"node_modules/mocha/bin/mocha --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.8.1"},"devDependencies":{"express":"~4.10.0","mocha":"~2.0.1","mocha-osx-reporter":"~0.1.2","supertest":"~0.14.0"},"gitHead":"5c5a31209721756f751990f6837b122dd2276206","bugs":{"url":"https://github.com/Blooie/express-autoroute/issues"},"homepage":"https://github.com/Blooie/express-autoroute","_id":"express-autoroute@1.1.1","_shasum":"6e74afb0d2d9117ee7dbb7cc5fd7f6aae5f52427","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"dist":{"shasum":"6e74afb0d2d9117ee7dbb7cc5fd7f6aae5f52427","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.1.1.tgz","integrity":"sha512-pS9xXtD4v+FTeRbOgsHKxSNJXz5Gdu7oBJRJpIVbTnt1I+lv11Uv8lyByE2YE2Axwgjm7DjLPtUyxXQoKVLtCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgPg+aYJQ69djbKyJAT9/B4WJ9FkMMoL87zPb3wVg/MAiACSLyLFJklYh5CNVo+wn/p909NoAQENb87FcBdFr38YA=="}]},"directories":{}},"1.2.0":{"name":"express-autoroute","version":"1.2.0","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"~0.8.1"},"devDependencies":{"express":"~4.10.0","mocha":"~2.0.1","mocha-osx-reporter":"~0.1.2","supertest":"~0.14.0"},"gitHead":"ee834ac978bc051bb3b870dbf41bddfa796b496c","bugs":{"url":"https://github.com/Blooie/express-autoroute/issues"},"homepage":"https://github.com/Blooie/express-autoroute","_id":"express-autoroute@1.2.0","_shasum":"fd8a79b45765ed739496d6a617fc1788042a92cd","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"dist":{"shasum":"fd8a79b45765ed739496d6a617fc1788042a92cd","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.2.0.tgz","integrity":"sha512-u3y/wvtra6CkN9yrlUQkfkDmw2H99hfhexBchI11OcFNhUPKLEJfze+DFwPUJPrbgF4xzaAsVeBt1x1B+P0mNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC65TnzKiKgbspPX1Tbf5wtJ71PKJPgofiObwBkpnYAXwIgMzjbsXhuRkK8Tb/8R72r9oUacuTOKf5oXfyUP2tK6Tg="}]},"directories":{}},"1.2.1":{"name":"express-autoroute","version":"1.2.1","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git@github.com:Blooie/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Andrew Manson"},"license":"MIT","dependencies":{"winston":"^0.9.0"},"devDependencies":{"express":"^4.11.2","mocha":"^2.1.0","mocha-osx-reporter":"~0.1.2","supertest":"^0.15.0"},"gitHead":"23013d2304abcab335086258af33fd01276e568d","bugs":{"url":"https://github.com/Blooie/express-autoroute/issues"},"homepage":"https://github.com/Blooie/express-autoroute","_id":"express-autoroute@1.2.1","_shasum":"fef1b6cca22614b8a0c4cc6d6f006e03964ed96f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"dist":{"shasum":"fef1b6cca22614b8a0c4cc6d6f006e03964ed96f","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.2.1.tgz","integrity":"sha512-OFDX0dNd2wCwM/5veY1Nu7Lbjr1cHXjT4FYJPKXuunBklHM+6nhXwK1Xa8gS9ciPhfvz3HvjjIQptPutl7QXjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFH/HGa70l3UIA26JHYhIGKD7DERQLcH8SNCH4KBaXJ6AiBSUw4L/RswcH09lmFckqi/DBya/+oD7kuMZBs8PNH11g=="}]},"directories":{}},"1.2.3":{"name":"express-autoroute","version":"1.2.3","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git+ssh://git@github.com/stonecircle/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Chris Manson","email":"chris@stonecircle.io"},"license":"MIT","dependencies":{"winston":"^2.1.1"},"devDependencies":{"express":"^4.11.2","mocha":"^2.1.0","mocha-osx-reporter":"~0.1.2","supertest":"^1.1.0"},"gitHead":"7389567e9ca618789dd29a48f8f1e3fc34d3a0f9","bugs":{"url":"https://github.com/stonecircle/express-autoroute/issues"},"homepage":"https://github.com/stonecircle/express-autoroute#readme","_id":"express-autoroute@1.2.3","_shasum":"f593c132366015090f71d429a293b5dcde97bf0c","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.1","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"dist":{"shasum":"f593c132366015090f71d429a293b5dcde97bf0c","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.2.3.tgz","integrity":"sha512-M6ykVx+XxDZekh0uymdq5TRPYyIDoFv4JBcocM/TF+ezxw6GEfyIo2S9BJmo3wg3ZjKLBQI6pHlgO1zU90yKRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnmdhFTEuyjXzI7aU8tegTFBLonP8t6OqXkEcsq5bBQwIgdFiKCx/0CfL0wOtD6DYzm1U7y8HZ2CQIfDrOsasBR14="}]},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"1.2.4":{"name":"express-autoroute","version":"1.2.4","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git+ssh://git@github.com/stonecircle/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Chris Manson","email":"chris@stonecircle.io"},"license":"MIT","dependencies":{"winston":"^2.1.1"},"devDependencies":{"express":"^4.11.2","mocha":"^2.1.0","mocha-osx-reporter":"~0.1.2","supertest":"^1.1.0"},"gitHead":"51c3365c3def63511cacdcec25bad617d0a2ea86","bugs":{"url":"https://github.com/stonecircle/express-autoroute/issues"},"homepage":"https://github.com/stonecircle/express-autoroute#readme","_id":"express-autoroute@1.2.4","_shasum":"71f9d51917e60d858c6bc581a31cdf2fdff946b9","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.1","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"dist":{"shasum":"71f9d51917e60d858c6bc581a31cdf2fdff946b9","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-1.2.4.tgz","integrity":"sha512-Egu8CpQJfTwNX/HJJ+I1YUcKchELvOL22Ad9ubL7goF3M9bqFRFS+VGgcqRFMGcFo9dXuRlx5g91lbcJL7eAQw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgvk/A/PAryWdt53atpm9RLJ0Dy4tQHrH9OrspNklTawIgfOErZldzAm8d2mY2AP4ObBtx+BB0U5ltN61pkZpyn/I="}]},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{}},"2.0.0":{"name":"express-autoroute","version":"2.0.0","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git+ssh://git@github.com/stonecircle/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Chris Manson","email":"chris@stonecircle.io"},"license":"MIT","dependencies":{"winston":"^2.1.1"},"devDependencies":{"eslint-config-airbnb":"^14.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.1.1","eslint":"^3.3.1","express":"^4.11.2","mocha-osx-reporter":"~0.1.2","mocha":"^2.1.0","supertest":"^1.1.0"},"gitHead":"317d73ace750695f14a29a457643487db74e7f27","bugs":{"url":"https://github.com/stonecircle/express-autoroute/issues"},"homepage":"https://github.com/stonecircle/express-autoroute#readme","_id":"express-autoroute@2.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"dist":{"integrity":"sha512-lw4U+KcHcnR9DKbagf5zw+zKwL6OcF8vYE76lzTurQ7tc01KR6rzxrEBOFkuATCk9HIJp2nCX7cC/+kg1Lc/Eg==","shasum":"8bb162328f1b85ade02d2a82acbc0bb272fafc5a","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGrFj59UkeIkPdsvCYVF1eIpzrYVoPUj6VUB6k24Fr8gIgA0XEqKqyfOKPVR42csSOlegtoRvwMVc+VjMQ2Mz2CMo="}]},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-autoroute-2.0.0.tgz_1498205823543_0.7696786420419812"},"directories":{}},"2.1.0":{"name":"express-autoroute","version":"2.1.0","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git+ssh://git@github.com/stonecircle/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Chris Manson","email":"chris@stonecircle.io"},"license":"MIT","dependencies":{"winston":"^2.1.1"},"devDependencies":{"eslint":"^4.13.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","express":"^4.11.2","mocha":"^2.1.0","supertest":"^1.1.0"},"gitHead":"121e3935144829293cb6005ed4a951eb93ae2c5e","bugs":{"url":"https://github.com/stonecircle/express-autoroute/issues"},"homepage":"https://github.com/stonecircle/express-autoroute#readme","_id":"express-autoroute@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"dist":{"integrity":"sha512-H57go1wuweoIqy5bgMbRG1n51nXkITi2Vjfyu9xb08YIGyP64T3Wn247Yu+VSbmXzwqtNryLMs04dyoQp2jOrQ==","shasum":"8a87236de3b7aed17a95e7d8903fd12c0268bed1","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLX2CSKR68k7zWtBSe6x6fqZo9rWzpAMosb0cg6E2McAiB/EWvv5xXBvZxujiLiFARPFeacJp3OILXQlvKWF17INQ=="}]},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-autoroute-2.1.0.tgz_1513282192830_0.48699225578457117"},"directories":{}},"2.1.1":{"name":"express-autoroute","version":"2.1.1","description":"Express Auto Route automatically load routes from a structured routes/ folder","main":"index.js","scripts":{"lint:js":"eslint .","test":"node_modules/mocha/bin/mocha","test-watch":"npm run test -- --watch","test-watch-mac":"node_modules/mocha/bin/mocha --watch --reporter mocha-osx-reporter"},"repository":{"type":"git","url":"git+ssh://git@github.com/stonecircle/express-autoroute.git"},"keywords":["express","routing","automation"],"author":{"name":"Chris Manson","email":"chris@stonecircle.io"},"license":"MIT","dependencies":{"winston":"^2.1.1"},"devDependencies":{"eslint":"^5.12.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","express":"^4.16.4","mocha":"^5.2.0","supertest":"^3.3.0"},"gitHead":"a58184a659c420edb03f777ed77e51377e00efba","bugs":{"url":"https://github.com/stonecircle/express-autoroute/issues"},"homepage":"https://github.com/stonecircle/express-autoroute#readme","_id":"express-autoroute@2.1.1","_npmVersion":"6.5.0","_nodeVersion":"10.12.0","_npmUser":{"name":"real_ate","email":"chris@manson.ie"},"dist":{"integrity":"sha512-XMymQ2dHiK3kzqSU3iw00bw8ATXJr1KeVkNrIlDkmr2nxvyt5fak6yVPBth+vl4tfmDdPk81OlZrHOqtaiwcbw==","shasum":"284dfdefd6423e8b6749bc40058ca5ee97a89401","tarball":"https://registry.npmjs.org/express-autoroute/-/express-autoroute-2.1.1.tgz","fileCount":17,"unpackedSize":19157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcMhUQCRA9TVsSAnZWagAA7UoP/i1+/SiFFKpw7pEC7eV2\nsEpWfYZ0UJDWZ7WoEG6y5bCKI69oEkzn4nzTWWWfEg4goCc6UHVW3gK7p5QZ\nbOI3PLXz8EdeYDywKDN85uhloVux1efsDeJ9KYtHZvofmjcHHreyBpEQ23Q+\nkMXDCBxajWqS7VoJABBrY6AGpDw0w6KHNT/egvS+j/69Vseyi5mk2uomQd6Z\n6JAPo8DKD7KkVVasS0abPkQjOR94+UBFyVPGfLiihJCj7T4uNWxti+1sFS8s\nZK7z60bWUP0T2TIi/+pQ10GT6QSr4WtK2Q6d7on4hnF+8LaHi3sK0vS7qBqc\nLgm6CYLupGbc+aBqN8BfAEV69AFWUrX4cxw6R2b3uVB8ZLkVhX91TLtUDTJu\n+L/sAa0Wj81tRMyQoAFmG/cK26VEtf/dJqPvjDP+7fMX98ltcWm/eJD9cgx+\nztWo7Wq24Vss2CpoqyhT2zIK2hmiDdvF6DxXRZlojm/2h7vB/vypMNhNfe0E\nY4IwoXW3UOoIe4XAFdnvu50T+poZrOLasPG6SyHRmcYtgRD1CnGaQK4y8Rrr\nwslBbe/jYa3e8gSwgLOmlUesm3KQ2tY61uS+VKZYCZW0W+dL5NlL5kzLX2vy\ne6GAX1XwfpMVK0M6QzRfvQHfdGhl6zs/j81+ZHk/4z6eSlMu4n2lNnaW8aEo\n3yqJ\r\n=lNyT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYhBjQvE/J25iwKwvqRQWpJUDLfuqpb6QL+Ki37iF+wAiEAz9m9UJuBFRNhGfDbemE4AAqoGMXObgZz5CjG2Ud+LZw="}]},"maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-autoroute_2.1.1_1546786063725_0.782228823602896"},"_hasShrinkwrap":false}},"readme":"[![Dependency Status](https://david-dm.org/stonecircle/express-autoroute.png)](https://david-dm.org/stonecircle/express-autoroute)\n[![Build Status](https://travis-ci.org/stonecircle/express-autoroute.png?branch=develop)](https://travis-ci.org/stonecircle/express-autoroute)\n[![Code Climate](https://codeclimate.com/github/stonecircle/express-autoroute.png)](https://codeclimate.com/github/stonecircle/express-autoroute)\n\n# Express Autoroute\nThis helper library originally came about after about a year of slowly improving how we structure our NodeJS and ultimately me being fed up of having to continuously type out ```app.get('/blah', blah_handler)``` and wondering where different paths are being constructed.\n\nI also subscribe to the idea of [convention over configuration](http://en.wikipedia.org/wiki/Convention_over_configuration) because we developers have enough to think about. Also for something like NodeJS where there are so many people trying it out for the first time and fewer people blogging about best practices, sometimes its better to just follow convention and learn good ways to structure your app and write re-usable code.\n\n## Installation\n```js\nnpm install express-autoroute\n```\n\n## Usage\nFirst things first you need to enable the autorouter and pass it your express app.\n\n```js\nvar autoroute = require('express-autoroute');\nautoroute(app,options); //where app is an express app;\n```\n\nFor express-autoroute to start working you need to have a ```routes/``` folder that contains specially formatted javascript files that expose an autoroute object that contains the public route api. The best way to describe it is with an example.\n\n### Options\nPassed as a JS object to the autoroute initialisation funciton\n\n```js\n//defaults\nautoroute(app, {\n\tthrowErrors: false,\n\tlogger: require('winston'), //autoroute requires winston internally if you don't pass an instance to it\n\troutesDir: 'routes'\n})\n```\n\n```throwErrors: Boolean``` will throw all errors found while loading routes\n\n```logger: winston instance``` as a default it will use the internal default winston object. If you wish to use custom settings then pass in an instance defined within your app.\n\n```routesDir: String``` sets the directory to search for autoroute files\n\n```routeFile: String``` allows loading of one file instead of a directory, useful for testing\n\n### Example autoroute File\n\nThis is the contents of a file  ```routes/blacklists.js```. Note that the name of the file has nothing to do with the resulting endpoint so you can structure your files however you like.\n\n```js\nmodule.exports.autoroute = {\n\tget: {\n\t\t'/blacklists' : get_all,\n\t\t'/blacklists/:id' : get\n\t},\n\tpost: {\n\t\t'/blacklists/:id' : update,\n\t\t'/blacklists' : create\n\t},\n\tdelete: {\n\t\t'/blacklists/:id' : del\n\t}\n};\n\nfunction get_all(req, res){\n\t//do something\n}\n\n...\n```\nAs you can see the file is exposing a structured object. This object will be used later to decide what endpoints to create for the express application and will ultimately result in the following commands being executed\n\n```js\napp.get('/blacklists/', get_all);\napp.get('/blacklists/:id', get_all);\napp.post('/blacklists/:id', update);\napp.post('/blacklists', create);\napp.detete('/blacklists/:id' : del);\n```\n\nAnd thats it! A nicely declarative way to load your routes.\n\n### Folders\nexpress-autoroute also supports routes being separated into folders. The folder name will be added as a prefix to the express endpoints. For example, if you use the same ```blacklists.js``` file from before but move it to the folder ```routes/api/blacklists.js``` the resulting express commands will look like this\n\n```js\napp.get('/api/blacklists/', get_all);\napp.get('/api/blacklists/:id', get_all);\napp.post('/api/blacklists/:id', update);\napp.post('/api/blacklists', create);\napp.detete('/api/blacklists/:id' : del);\n```\n\n### Middlewares\nA nifty feature in express is the ability to have route specific middlewares, and if they are used correctly they can really reduce the amount of code you write and always keep things DRY. express-autoroute supports the use of route middlewares by just adding an array to the autoroute object. Here is a silly little example but at least it explains the idea:\n\n```js\nmodule.exports.autoroute = {\n\tget: {\n\t\t'/blacklists' : [authentication, get_all]\n\t}\n};\n\nfunction get_all(req, res){\n\t//use the user object to get something\n\tvar myBlacklists = db.getMyBlacklists(req.user.id)\n\tres.send(myBlacklists);\n}\n\nfunction authentication(req, res, next){\n\t//get the user object or whatever\n\treq.user = dbUser;\n\tnext();\n}\n```\n\n# Licence\nCopyright (c) 2013, Chris Manson <chris@stonecircle.io>, Stone Circle Design LTD <info@stonecircle.io>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"real_ate","email":"acb@manson.ie"}],"time":{"modified":"2022-06-17T22:09:26.824Z","created":"2013-02-12T12:08:34.521Z","0.0.1":"2013-02-12T12:08:36.630Z","0.0.2":"2013-02-19T11:04:02.552Z","1.0.0":"2014-01-05T11:01:07.192Z","1.0.1":"2014-01-20T16:24:33.231Z","1.1.0":"2014-02-16T08:30:05.613Z","1.1.1":"2014-10-26T08:20:54.685Z","1.2.0":"2015-01-27T17:54:49.889Z","1.2.1":"2015-02-19T12:54:06.622Z","1.2.3":"2015-12-30T14:20:07.590Z","1.2.4":"2016-01-02T19:59:16.162Z","2.0.0":"2017-06-23T08:17:04.531Z","2.1.0":"2017-12-14T20:09:53.789Z","2.1.1":"2019-01-06T14:47:43.872Z"},"author":{"name":"Chris Manson","email":"chris@stonecircle.io"},"repository":{"type":"git","url":"git+ssh://git@github.com/stonecircle/express-autoroute.git"},"readmeFilename":"README.md","users":{"456wyc":true,"shadowlong":true,"webs":true,"rocket0191":true,"lukvonstrom":true},"homepage":"https://github.com/stonecircle/express-autoroute#readme","keywords":["express","routing","automation"],"bugs":{"url":"https://github.com/stonecircle/express-autoroute/issues"},"license":"MIT"}