{"_id":"express-enrouten","_rev":"34-759f6e01e929f98d761a11e02b6a66ee","name":"express-enrouten","description":"An express route initialization and configuration module.","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.4":{"name":"express-enrouten","version":"0.0.4","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/paypal/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"mocha":"~1.9.0","chai":"~1.5.0"},"_id":"express-enrouten@0.0.4","dist":{"shasum":"82e2f1fbed47a3d811f61adedaa64cc1c1748909","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-0.0.4.tgz","integrity":"sha512-pZA5uNH7ERlVNX47BD/Bxznvqd295BoS5X1zavLzlNsfuGR/dMlGwn8UWO7+nwjK20zBLfQ296PX4hh0vR3tTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDD81v0H1eT+tkXOctsJYV8caoaforEQdzPKVjMnY5/AIgWAkM2SwICmstvfjgIUz0i/t/Z2XeLDLuuTnd4OlQvHA="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}]},"0.1.0":{"name":"express-enrouten","version":"0.1.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/paypal/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"mocha":"~1.9.0","chai":"~1.5.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-mocha-test":"~0.7.0","express":"~3.4.6","supertest":"~0.8.2"},"_id":"express-enrouten@0.1.0","dist":{"shasum":"45163b07507372bf83d98171c1dc2db8d29b4430","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-0.1.0.tgz","integrity":"sha512-gadIzpHkag33GzcL2dn1UzYBWbpidC5fVH82/2hdlZKc3Cbw2483kFi5JTRmjXT5iztQfQegSX8kVwzWsA1P5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMGgbRL+p7CUwelcovXaQIgGNW7AY8QGTcCagcs5Oc+AiBUV3pVUaB8AcfmQwWy+ji1+2DZTHRbWTxsRxdvapaLKw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}]},"0.2.0":{"name":"express-enrouten","version":"0.2.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/paypal/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"mocha":"~1.9.0","chai":"~1.5.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-mocha-test":"~0.7.0","express":"~3.4.6","supertest":"~0.8.2"},"_id":"express-enrouten@0.2.0","dist":{"shasum":"9cde7cd193e34079045bdbd4ab5deffe431c0a2a","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-0.2.0.tgz","integrity":"sha512-c1xeNxFimjnfDYPwM1bcxO+4TZsoMDvs3FmRLl94Pc56GX+buZ86CZPmVICDb5WSalTUSuoYflTuBw2x5qQRZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIlgftoqaEZ+HB6PM9i2CoFuQm9We5TFKhDmmBRePBHAiAmnfM63EidT55C7+IZn7pRcyHdt3pA/OMSkp6FoitxOA=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"}]},"0.2.1":{"name":"express-enrouten","version":"0.2.1","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/paypal/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"mocha":"~1.9.0","chai":"~1.5.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-mocha-test":"~0.7.0","express":"~3.4.6","supertest":"~0.8.2"},"_id":"express-enrouten@0.2.1","dist":{"shasum":"5974913f43e1fdf8848269a0fecce5efde10be78","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-0.2.1.tgz","integrity":"sha512-x4R8SCe18Cxxdlgyx7XB4hpu9A2Di/lsdDUy4spOQ/CMFqKoXiYeWzITDbbfYcYXH6bo2uNXzYs2SZf5usLANw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAm8EI04UCYPiddNW6hINnSf2QjbDahnh9pQkw7ISekyAiAAtJgKul7Gk1/VDWu/f4V6VFkBTqcVhYKVwaKFG3+SJQ=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"}]},"0.3.0":{"name":"express-enrouten","version":"0.3.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git://github.com/paypal/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"mocha":"~1.9.0","chai":"~1.5.0","grunt":"~0.4.1","grunt-contrib-jshint":"~0.7.0","grunt-mocha-test":"~0.7.0","express":"~3.4.6","supertest":"~0.8.2"},"_id":"express-enrouten@0.3.0","dist":{"shasum":"99bc01861c91626b8ad004cf243c516c72eded40","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-0.3.0.tgz","integrity":"sha512-Uu8hTm/pvE+KOPqNO042FElxgGa0+h1qOVWVIgeN3gTUe0EWbOxai2qbeR6MkYTNllT12nworRH9xeH+4b7jQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5MBtKowGAPkZKSIcnsQizcriCfNo6n8D89PZeebhKOgIgQFADsf9dNGO0TzDAWj7kRN1HVLEBN0iAE3wfuPeZ9hA="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"}]},"1.0.0":{"name":"express-enrouten","version":"1.0.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"~4.0.0","supertest":"~0.8.2","tape":"~2.10.2","istanbul":"~0.2.6","jshint":"~2.4.4"},"dependencies":{"caller":"~0.0.1","debuglog":"~1.0.1","reverend":"~0.2.0"},"bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten","_id":"express-enrouten@1.0.0","dist":{"shasum":"cb4293c5e92fbb417fb75c91d0e04917d81d8106","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.0.0.tgz","integrity":"sha512-wt5zvjw/f5MKNJMMjAuHAKiZlnVBeC22yvj/99ViiJqVkxhqRvY+Af51Z5+LzC/2JQIf6RbaPB/mR3HjHfU5yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNrSwIMcy+7csCloa6WV1HTMqWXXf4UK88Jm+fn2XsYAiEAhpF8pqiHm7faCQyZXCXyrP8Eqq1kfEh19mq5yMp5fOk="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"}]},"1.1.0":{"name":"express-enrouten","version":"1.1.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.0.0","istanbul":"^0.2.11","jshint":"^2.5.1","supertest":"^0.13.0","tape":"^2.13.3"},"dependencies":{"caller":"0.0.1","debuglog":"^1.0.1","reverend":"^0.2.0"},"bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten","_id":"express-enrouten@1.1.0","_shasum":"2ddae4288aaeade4c9c93c087c9a49e493839bcf","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"}],"dist":{"shasum":"2ddae4288aaeade4c9c93c087c9a49e493839bcf","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.1.0.tgz","integrity":"sha512-AyZ4Jne2n6BiVD8ds0jJtIMd3oJjHyYPTkodepQRaDaVWDG5jY5JUnXK6TWCiU/pxMYW2Zx6o8vD60FsH00wBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqhGEJkankaKAihnMjD5Z0Q7E5/XzGRJqd47RmV+5ZkwIgED5+6EnEyVknSLzzMOZ7GcZv1OS3pay3UXy7nJGTYMo="}]}},"1.1.1":{"name":"express-enrouten","version":"1.1.1","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.0.0","istanbul":"^0.2.11","jshint":"^2.5.1","supertest":"^0.13.0","tape":"^2.13.3"},"dependencies":{"caller":"0.0.1","debuglog":"^1.0.1","reverend":"^0.2.0"},"bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten","_id":"express-enrouten@1.1.1","_shasum":"78842c4a37785e2c0af25f2e503bb4cda56a41d4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"}],"dist":{"shasum":"78842c4a37785e2c0af25f2e503bb4cda56a41d4","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.1.1.tgz","integrity":"sha512-7DqrWuE1CPyl5UJf2/U1jYCSg6/7mNKtHgljdOHXifNF3H3IN9KwSzwHdFDc8uIyQWRdKlbtiNo4WZrOIPPYjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpTqw1boAsVvqBieJnfJb3Xut87uQ7lcFF4HHMnnsySAiAh18iGw6UzibsV4qJkEqXbhR0HsW1OnB9efqjXPxVAvg=="}]}},"1.2.0":{"name":"express-enrouten","version":"1.2.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.10.3","istanbul":"^0.3.2","jshint":"^2.5.10","supertest":"^0.15.0","tape":"^3.0.3"},"dependencies":{"caller":"^1.0.0","debuglog":"^1.0.1","reverend":"^0.3.0"},"gitHead":"96156ef24c14521197b819eb2e8aac9ce10d19c9","bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten","_id":"express-enrouten@1.2.0","_shasum":"d37c314032e6c6ca066e8ca180a93cb214dc4356","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.10.33","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"},{"name":"grawk","email":"mattedelman@gmail.com"}],"dist":{"shasum":"d37c314032e6c6ca066e8ca180a93cb214dc4356","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.2.0.tgz","integrity":"sha512-kTRgao6KcF4rgCvwCThP6d2HjISfKDBdtnl3CE9URmdUS2aj2eEqoNKMsvj1+oV1dnBkUlN3lcl+38HeudZElg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVCe7J6bc1yjdbVFgVmpFBkjoleddlBguwpP9qaKBAGwIgVPAu55mZGgjzQ20OqOQw/6lqD/WePdlEYpp/RXLy01E="}]}},"1.2.1":{"name":"express-enrouten","version":"1.2.1","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.10.3","istanbul":"^0.3.2","jshint":"^2.5.10","supertest":"^0.15.0","tape":"^3.0.3"},"dependencies":{"caller":"^1.0.0","debuglog":"^1.0.1","path-to-regexp":"^1.1.1"},"gitHead":"600d22bba891f9281226075f9b3f0be01c6f9000","bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten","_id":"express-enrouten@1.2.1","_shasum":"49d536ce25765f6fb82f221e3538de57a784c393","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jasisk","email":"jasisk@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"},{"name":"grawk","email":"mattedelman@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"dist":{"shasum":"49d536ce25765f6fb82f221e3538de57a784c393","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.2.1.tgz","integrity":"sha512-WcwtW7ov8Ol8Gxkh+y7rFujUMbXJkI8gN0+JfxxXvMlkuLfGu8UKxeGpMjrtRdjrGivFW8bhtvgVRnv3cI9b6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7mP1wUQwhC7QBZas5NnpW0kX41ytMKTc8AnBix+MaVAiB2tk8eRFVYhwSLV5P9xbxlCaqSbqzyH7xCCs3QPRkjzg=="}]}},"1.2.2":{"name":"express-enrouten","version":"1.2.2","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.10.3","istanbul":"^0.3.2","jshint":"^2.5.10","supertest":"^0.15.0","tape":"^3.0.3"},"dependencies":{"caller":"^1.0.0","debuglog":"^1.0.1","path-to-regexp":"^1.1.1"},"gitHead":"489b2e47c56d66014ec704425d8958c9159e2456","bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten#readme","_id":"express-enrouten@1.2.2","_shasum":"a1182b4070bb38e2050690a779196b5c7cf7c5d2","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"jasisk","email":"jasisk@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"},{"name":"grawk","email":"mattedelman@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"dist":{"shasum":"a1182b4070bb38e2050690a779196b5c7cf7c5d2","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.2.2.tgz","integrity":"sha512-QPl8dbq2hWz3Si2pv2PO99UI/Bfn1WfIFZeODvGX6nyebobcXt1tYjKZPlIvC/WDBcleJbBtmGQqmocGhfBJlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLYVbLOUREWnnySfOhNViYgTDjJdV+P4E6zXC0Khd/9AiEA3iU4/1av7uk2d9juWiHtF9GQBehAz0LHv9Uc0xGV24k="}]}},"1.2.3":{"name":"express-enrouten","version":"1.2.3","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.10.3","istanbul":"^0.3.2","jshint":"^2.5.10","supertest":"^0.15.0","tape":"^3.0.3"},"dependencies":{"caller":"^1.0.0","debuglog":"^1.0.1","path-to-regexp":"^1.1.1"},"gitHead":"2c4d71b8b3265819298b9b25db4895f5a4802ca4","bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten#readme","_id":"express-enrouten@1.2.3","_shasum":"8228fedffbdeec9f19efcf5cc320e3c95ec55597","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"jasisk","email":"jasisk@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"},{"name":"grawk","email":"mattedelman@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"dist":{"shasum":"8228fedffbdeec9f19efcf5cc320e3c95ec55597","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.2.3.tgz","integrity":"sha512-xsKYnwGZXox3WVkGimEbdqk0CYyT7/zKJk5xH8xqtqVv7DaWVr1k9eQXFV7ydqSacv/nSCjXpJ1Rlx2xpRysQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpAYW7qdtyi0eFaerHFYQs+6eXctCh+iZTjv2XagQzJgIhAOBedrgnyzuKy5GKSCdXC5ODgyvKPyCy30vhPhQyS3rD"}]}},"1.3.0":{"name":"express-enrouten","version":"1.3.0","description":"An express route initialization and configuration module.","main":"index.js","scripts":{"test":"tape test/*.js","cover":"istanbul cover tape -- test/*.js","lint":"jshint -c .jshintrc index.js lib/*.js"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"publishConfig":{"registry":"https://registry.npmjs.org"},"keywords":["expressjs","node","js","javascript","routing"],"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"devDependencies":{"express":"^4.10.3","istanbul":"^0.3.2","jshint":"^2.5.10","supertest":"^0.15.0","tape":"^3.0.3"},"dependencies":{"caller":"^1.0.0","debuglog":"^1.0.1","path-to-regexp":"^1.1.1"},"gitHead":"cc5b99c57284badfda651245458a31727e9546cc","bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"homepage":"https://github.com/krakenjs/express-enrouten#readme","_id":"express-enrouten@1.3.0","_shasum":"656a30d9f82ed0c33fac49b459ef3f9fa5e6f020","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"jasisk","email":"jasisk@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"},{"name":"grawk","email":"mattedelman@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"dist":{"shasum":"656a30d9f82ed0c33fac49b459ef3f9fa5e6f020","tarball":"https://registry.npmjs.org/express-enrouten/-/express-enrouten-1.3.0.tgz","integrity":"sha512-bGPf0gkXOdBArySiOIwH+o0pRPSkCO0j+oAPble0AC4xOYRnwoUOImHHz56m2FGT7gvPI9esXPeW/1wh6bvLVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSIMmgdCn6D2RvnVieLx1lRPkeflZmpBWWJJZVts1XSAiAz1vBNPkA5iWgkhKLuUApkhFCnMyNkHw3UPAOwWPR5Yg=="}]}}},"readme":"express-enrouten\n==================\n\nLead Maintainer: [Jean-Charles Sisk](https://github.com/jasisk)\n\n[![Build Status](https://travis-ci.org/krakenjs/express-enrouten.svg?branch=master)](https://travis-ci.org/krakenjs/express-enrouten)   \n[![NPM version](https://badge.fury.io/js/express-enrouten.png)](http://badge.fury.io/js/express-enrouten)  \n\nRoute configuration middleware for expressjs.\n\nNote: `express-enrouten >=1.0` is only compatible with `express >=4.0`.\nFor `express 3.x` support, please use `express-enrouten 0.3.x`.\n\n\n### API\n#### `app.use(enrouten(options))`\n```javascript\nvar express = require('express'),\n    enrouten = require('express-enrouten');\n\nvar app = express();\napp.use(enrouten({ ... }));\n// or app.use('/foo', enrouten({ ... }));\n```\n\n\n### Configuration\nexpress-enrouten supports routes via configuration and convention.\n```javascript\napp.use(enrouten({ directory: 'routes' }));\n```\n\n#### directory\nThe `directory` configuration option (optional) is the path to a directory.\nSpecify a directory to have enrouten scan all files recursively to find files\nthat match the controller-spec API. With this API, the directory structure\ndictates the paths at which handlers will be mounted.\n\n```text\ncontrollers\n |-user\n     |-create.js\n     |-list.js\n```\n```javascript\n// create.js\nmodule.exports = function (router) {\n    router.post('/', function (req, res) {\n        res.send('ok');\n    });\n};\n```\n```javascript\napp.use(enrouten({\n    directory: 'controllers'\n}));\n```\nRoutes are now:\n```test\n/user/create\n/user/list\n```\n\n#### index\nThe `index` configuration option (optional) is the path to the single file to\nload (which acts as the route 'index' of the application).\n```javascript\napp.use(enrouten({\n    index: 'routes/'\n}));\n```\n```javascript\n// index.js\nmodule.exports = function (router) {\n\n    router.get('/', index);\n    router.all(passport.protect).get('/account', account);\n\n    // etc...\n};\n```\n\n#### routes\nThe `routes` configuration option (optional) is an array of route definition objects.\nEach definition must have a `path` and `handler` property and can have an optional\n`method` property (`method` defaults to 'GET').\n\nOptionally, a `middleware` property can be provided to specify an array of middleware `functions`\n(with typical `req`, `res` and `next` arguments) for that specific route.\n\nNote that a `handler` has a different function signature than a `controller`. While a\n`controller` takes a single argument (a `router`), a `handler` takes the typical\n`req` and `res` pair.\n\n```javascript\napp.use(enrouten({\n    routes: [\n        { path: '/',    method: 'GET', handler: require('./routes/index') },\n        { path: '/foo', method: 'GET', handler: require('./routes/foo') },\n        { path: '/admin', method: 'GET', handler: require('./routes/foo'), middleware: [isAuthenticated] }\n    ]\n}));\n```\n\n#### routerOptions\nThe `routerOptions` configuration option (optional) allows additional options to be\nspecified on each Router instance created by `express-enrouten`. Please see the\n[Express API documentation](http://expressjs.com/4x/api.html#router) for complete\ndocumentation on each possible option.\n\n```javascript\napp.set('case sensitive routing', true);\napp.use(enrouten({\n    directory: 'controllers',\n    routerOptions: {\n        caseSensitive: true\n    }\n}));\n```\n\n\n### Named Routes\nFor `index` and `directory` configurations there is also support for named routes.\nThe normal express router that is passed in will always behave as such, but in addition\nit can be used to name a route, adding the name and path to `app.locals.enrouten.routes`.\nFor example:\n```javascript\n'use strict';\n\nmodule.exports = function (router) {\n\n    router({ path: '/user/:id', name: 'user-info' })\n        .get(function (req, res) {\n            res.send('ok');\n        });\n\n};\n```\n\n\n### Controller Files\nA 'controller' is defined as any `require`-able file which exports a function\nthat accepts a single argument. Any files with an extension of `.js` (or `.coffee`\nif CoffeeScript is registered) will be loaded and if it exports a function that\naccepts a single argument then this function will be called. **NOTE: Any file in\nthe directory tree that matches the API will be invoked/initialized with the\nexpress router object.**\n\n```javascript\n// Good :)\n// controllers/controller.js\nmodule.exports = function (router) {\n    router.get('/', function (req, res) {\n        // ...\n    });\n};\n\n// Bad :(\n// Function does not get returned when `require`-ed, use `module.exports`\nexports = function (router) {\n    // ...\n};\n\n// Bad :(\n// controllers/other-file-in-same-controller-directory.js\nmodules.exports = function (config) {\n    // `config` will be an express Router\n    // ...\n};\n\n// Acceptable :)\n// controllers/config.json - A non-js file (ignored)\n// controllers/README.txt - A non-js file (ignored)\n// controllers/util.js - A js file that has a different API than the spec (ignored)\nmodule.exports = {\n    importantHelper: function () {\n\n    }\n};\n```\n\n## Linting\n```bash\n$ npm run-script lint\n```\n\n## Tests\n```bash\n$ npm test\n```\n\n## Coverage\n```bash\n$ npm run-script cover && open coverage/lcov-report/index.html\n```\n","maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"jeffharrell","email":"jeff@juxtadesign.com"},{"name":"grawk","email":"mattedelman@gmail.com"},{"name":"jasisk","email":"jasisk@gmail.com"}],"time":{"modified":"2022-06-17T22:16:31.013Z","created":"2013-11-15T16:06:34.722Z","0.0.4":"2013-11-15T16:06:35.667Z","0.1.0":"2013-12-10T04:12:12.757Z","0.2.0":"2014-01-27T18:56:38.379Z","0.2.1":"2014-02-10T20:19:11.094Z","0.3.0":"2014-02-13T22:46:52.835Z","1.0.0":"2014-04-18T17:44:51.216Z","1.1.0":"2014-06-17T14:48:26.047Z","1.1.1":"2014-06-17T23:34:34.249Z","1.2.0":"2014-12-09T19:30:10.608Z","1.2.1":"2015-05-13T22:14:38.905Z","1.2.2":"2016-01-15T22:27:13.376Z","1.2.3":"2016-01-29T19:39:07.888Z","1.3.0":"2016-01-29T20:00:35.520Z"},"author":{"name":"Erik Toth","email":"ertoth@paypal.com"},"repository":{"type":"git","url":"git://github.com/krakenjs/express-enrouten.git"},"readmeFilename":"README.md","homepage":"https://github.com/krakenjs/express-enrouten#readme","keywords":["expressjs","node","js","javascript","routing"],"bugs":{"url":"https://github.com/krakenjs/express-enrouten/issues"},"users":{"mjurincic":true,"cyberon":true,"leonzhao":true,"pftom":true}}