{"_id":"secure-express-routes","_rev":"6-59a2221f0ae442e0e0247fdd2d8aa0d9","name":"secure-express-routes","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"secure-express-routes","version":"1.0.0","description":"Middleware you can use to lock down all your express routes by default","main":"index.js","scripts":{"test":"mocha"},"keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","devDependencies":{"express":"^4.16.4","mocha":"^6.1.4","supertest":"^4.0.2"},"dependencies":{"path-to-regexp":"^3.0.0"},"gitHead":"bce492978779e3bc97e79ed27966d8e2243a8b96","_id":"secure-express-routes@1.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-8qAXiw12rJetT/HE7dMiqtxfbh5FGJhFxjADlROkD8ICVPlGpIa3TVDwyr29uHq7i6bOQmDfScQSFDa7/AQDEg==","shasum":"43d811589d18d8dad4ec3d7e0db110756ea116b7","tarball":"https://registry.npmjs.org/secure-express-routes/-/secure-express-routes-1.0.0.tgz","fileCount":4,"unpackedSize":6217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcyrPmCRA9TVsSAnZWagAAtWAP/2zAngmleT7GXe6eacFd\nv+FNhtf2WseKa5YPHlQ7NL0uKcUy8W90lqmP+gZqgETCK2JLPLtfBtgX1H0o\nggbCGvNAJ631DsKX8W8Dc3T1HedbO138ZFEIxS5DcgoKunH+edTGgA/n80og\n3zBwmM+KbC35dk2eAAB4C4bvleHk6F2ssYEGjzBfF0BuwUABhvvHotXUdnkU\nZqSAxgt0Dw5OlG90yQ7pwXrwCH5K0OQVR1382g287PU2JLvugstR7ifY1uxi\nelsPqePD96UWT66n2fLuoeRK7QXzo3vq85/ZUM54GdDsK34TkBKOr4uFQnY3\nYNa2WVMhGyWqLZo2fpFd2e4dS3mRKI7967GpB67mmbTYiHpWO3c0tJPNvX8P\npdxVz0p7zWcmKYQPDtqByUpBlumhhuXtTN2zMOu7MOlpl/8L8xKVCLdGeoi9\nJQ/44urAldlmMzWIZLn9lwZujxScEnGDfnAneYcaeVwiFmTEnKr0+rMi/SGk\nIOVcfsXL6fvyLYBeNJBIcgUbBc2WzWwOWyMyWP4bo1i5SS6dNsbpN8d31G5V\n2Hplee2Qbpi7kHB/Eg0ACJEhYh38JlCWgtUSqYA+1oPmOeX2OCii7/P+99SX\nuUg3LOs5PVCoonMEb+EefAWn+o9f/AmJ12wPJB4PFkUQG9yGGC4T0i7at6of\nQwyu\r\n=ETtI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3e0H0dpDtiI6EJ8ojbM7v7JCKA265Xy+49tJ5LL9b6AIgAy8h9upuY31xXWKsJBjQTxc7aKu9jVn/6f7AA4y0/Jc="}]},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"_npmUser":{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-express-routes_1.0.0_1556788198372_0.8621565682324079"},"_hasShrinkwrap":false},"1.0.1":{"name":"secure-express-routes","version":"1.0.1","description":"Middleware you can use to lock down all your express routes by default","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rouanw/secure-express-routes.git"},"scripts":{"test":"mocha"},"keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","devDependencies":{"express":"^4.16.4","mocha":"^6.1.4","supertest":"^4.0.2"},"dependencies":{"path-to-regexp":"^3.0.0"},"gitHead":"2810b8e20f0167f8ac076ad30e8cfea02faa1118","bugs":{"url":"https://github.com/rouanw/secure-express-routes/issues"},"homepage":"https://github.com/rouanw/secure-express-routes#readme","_id":"secure-express-routes@1.0.1","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-w3A95WK0SZwOMzvu0aMuvVciSjXfINSovBYnxuG70+RoJkLEJc4Tj6JykjwSOtPOFd549PiXSCyfe3n2pQ0fEw==","shasum":"3182300b84e2c3852f6e88e1d73f4d376c05e600","tarball":"https://registry.npmjs.org/secure-express-routes/-/secure-express-routes-1.0.1.tgz","fileCount":4,"unpackedSize":6320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczElTCRA9TVsSAnZWagAAzPUP/R5pjVwY99Ta4gOJYGwf\nZV19YBeSONLmoH9JzedzpWSViGvQr2QkK7QEmX02+4OCEDuhpO7WmAQxmcWU\nFsIGY+c8j6QJOprmkoHKGpxF0dhlmpaauIDcXsjJarh7KTjOvsyrbGc+3R8M\neRwz9J4Tx0Z9vWr+xQkoedT24QoYGxBgoi9fJSjqboZrd4xfxxBQjjeh6yKG\nFv5FSSg3KWaaJmkk8LJFlbZi+mBVLYJyzpczDR7E2zFgYbzB7U7yMl932t6F\nE1TZC/gyVzHcoq6X/XXzgeG9ZDyDo2Fy0RN5OXzTzOM8fI2heeIAPJ4StI3m\nIiM0kPt+5Rfqmo8okqaHDaN6sBRtXkrnlBgMepEY9yvSonx1SaUd6eVqswDv\nXSk29pIlIA1kqFoxdBwrG/E3OdT6J63HVkb9mIgdLSq4MQsoo3Tg6fQGrOIz\n4euevgk3vv93wKWlZewmZl89NuhpLweDgcfHAZLIAEwql4/NX31FulkXzq1S\nFIYyxLfZMwr7nYVdM1Eq0S6m1LszzawdqNKff5NZgGYkIBj9tl7QIyjaKS4b\nO1wwIKqSZXRdeuf2IDktep/qH3Yh1ip4N4vduVpjaBIn0cvHwPd1x5UdOxlF\nzXWmVzCMDwfcOcekhfbePZzvR6XhDfXlcbThhTonastTrH7GqTW1o2eYZZjh\n5jUX\r\n=CVyZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOKz+9/RG7BMXCa59wXr0BFEBPqSSGvuUaTu0O2PKEZwIhAKHqfDd/n6k0CMNckGtsG7y6Uq7jGOo6/el0oFUPEjkx"}]},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"_npmUser":{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-express-routes_1.0.1_1556891986375_0.05778579077254786"},"_hasShrinkwrap":false},"1.0.2":{"name":"secure-express-routes","version":"1.0.2","description":"Middleware you can use to lock down all your express routes by default","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rouanw/secure-express-routes.git"},"scripts":{"test":"mocha"},"keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","devDependencies":{"express":"^4.16.4","mocha":"^6.1.4","supertest":"^4.0.2"},"dependencies":{"path-to-regexp":"^3.0.0"},"gitHead":"9805a3e6cace9039fdcdb1c5ee25d1c7f69967f0","bugs":{"url":"https://github.com/rouanw/secure-express-routes/issues"},"homepage":"https://github.com/rouanw/secure-express-routes#readme","_id":"secure-express-routes@1.0.2","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-1MRhDOkyzRK32+ShQdI3fKXPmrk0zAUhogdxM3KZpnEUXlki23OAcL6iQq4DdH1GAPq1hahonSrCUYQpZpg5ZA==","shasum":"806c209b04b8dee2740ea3ecc641a9d49705d35c","tarball":"https://registry.npmjs.org/secure-express-routes/-/secure-express-routes-1.0.2.tgz","fileCount":4,"unpackedSize":6746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0s3iCRA9TVsSAnZWagAAlj8QAKOTJ/BO7BPqiLei/Adr\nGid51hmu1oeq6yHtrLzT7OgYJM8GcWih6ic19Z5FEG0P6kN9vVl1RAN/W3kk\nV2cit/9CN+FustVZiyIzqq2fYkERusw5/51IwBOl0e1QWJxBBOakU0TT4z4+\nbV9el+UJpMjpWIjLSzNhYy4gaIECIZdHZM4myV8z4m8GnF4OEe4LPljsJ8cd\nFZgEmGTtE6OlNkVsrxGzV8YB6gSYLOHXUmZlaaAItF4xDQDxjLrUilngIKLP\nW0/4PZfF6r2EZzojdP7K9ee5GaFGCs1RNwid+WhwzcqxGPYYWngut94bEAY1\nBBtRLuQlUgKh0Pmo6fUk54UXwnjf73hyNYFgx6ob9ZB82u4qJIcTcGDKSta7\nic08wVgIgnpkXSn+viVwtMTqXI/QRMqkACW9GjjCGYwuQXSDEQPacU1VCJup\n38mlK93q/K8RRY0sXJ1DkWSp1odX8WkZcIo/eEBTgFI7hKruSevIbbpOyYyF\nK8fnWfI2FA6mspIVo4u/+E4UN2tgdMgn4klCDxntY3oKnm38PwO4UXkfnKSU\ntwkgcC9HC78qwghHH510XnNAwdMJamCZ0/i+JyPmInoWT2M3ASTnf2rcJgYv\njblZq8DPqWLZixOBH+3xpjuibIbDCm9bYtXC7qWKwlSnLAq6ZOjO7G1c44J4\nmZwU\r\n=VqJP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbxPjfKoY0KUIEMhWuJT/Veg1P4ej3U3BdMAnSzrCAUAiAMRD0PbuzJRXXfVpo39YlDUH60gzF+rJiQYtkwZl+oSQ=="}]},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"_npmUser":{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-express-routes_1.0.2_1557319137774_0.2784403542344862"},"_hasShrinkwrap":false},"1.0.3":{"name":"secure-express-routes","version":"1.0.3","description":"Middleware you can use to lock down all your express routes by default","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rouanw/secure-express-routes.git"},"scripts":{"test":"mocha"},"keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","devDependencies":{"express":"^4.16.4","mocha":"^6.1.4","supertest":"^4.0.2"},"dependencies":{"path-to-regexp":"^3.0.0"},"gitHead":"95d43f56c8c9ddb83730d60e5998094eb8997bc6","bugs":{"url":"https://github.com/rouanw/secure-express-routes/issues"},"homepage":"https://github.com/rouanw/secure-express-routes#readme","_id":"secure-express-routes@1.0.3","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-grzGhBR1ABNCWJIbkcPIyPrGhHLGtWXhoiPWXsmgi53/AyhbXZhxWNTtLH+9XtJt4zRFq9j90GV0qxRawHnrJg==","shasum":"1e87dc8ea19b3e077a48ac51bd4d9674b36af86c","tarball":"https://registry.npmjs.org/secure-express-routes/-/secure-express-routes-1.0.3.tgz","fileCount":4,"unpackedSize":7178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0ukxCRA9TVsSAnZWagAA1kkQAKQLpSbl/fSRcMQVj33Y\nr/XuYP3WSiHmWCMnBakDa4uVmFMn9UNWIx0BqC8oKnc6w18H1SZSDNr4voAh\n3tdP6iIkUlpkwQBh7+sjq4ajojBNcS//nAVcxFJjQxWzH6y+7L5RdTvWu+YV\n5sgA3+8UGHXhxlMYD1LZQKWV39hHHeXbNb8MxDGE9AhFwDR7v/IrlgjybMcZ\nZvkCZSFV9EnLNh5imJmAHnyBZRKMSz1Y4q65723fP0pJBD0WVMiU2+SX6jbE\nAD3tlXAI1h9fcr6oQLVUwCfqf3hyJeOsg048BhXGxJaI8/LVdfCfYAMx4QsY\njYfj0Ej1HTFa0aq6dZW9xTkX2no5NiaJ5/nR68/rWq8U292H0+XhwTBsoWjb\nMXCPbIvc1KsAYAvLgWCNdH+2ahy7Yxe18wYrnui97sxgsE3U31wESLx4JY9X\n/kwO1Qu6WcyEQsNQe8CfFHdJRPWSqun7WhXqnkePZVyYsckwM8QlatNfS+/1\nil/6oIyBwZ4Dxsnq4QL/8iYZQxYtiMTknDrQIvmhBpnthSgz5uv8rjA0qpcC\nCr3IY/KdP4GJezOUf+rdvDlsTBBV81ESWVCf1DTKpq8AtKmuOv9ZtD+vo3hd\nnQAebf7XUWI9k21No3iMzUJTnX4cLP0DIOxLhFHZyKPK3KHxykAdnvtczgN4\nCQpB\r\n=KMm5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhnXzW6BRu+XmJ3yVpiV4GrI1Us3sdRI81AbdvyaEPvAiEA7vyvSxe2r0yi2yZRHeC2H4BLl6k/B+J8cDcJkdePZmk="}]},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"_npmUser":{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-express-routes_1.0.3_1557326129168_0.019168691592007514"},"_hasShrinkwrap":false},"1.0.4":{"name":"secure-express-routes","version":"1.0.4","description":"Middleware you can use to lock down all your express routes by default","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rouanw/secure-express-routes.git"},"scripts":{"test":"mocha"},"keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","devDependencies":{"express":"^4.16.4","mocha":"^6.2.0","supertest":"^4.0.2"},"dependencies":{"path-to-regexp":"^3.0.0"},"gitHead":"a8cd95a9db4de40b6dffeb24f98e30812ea8bb03","bugs":{"url":"https://github.com/rouanw/secure-express-routes/issues"},"homepage":"https://github.com/rouanw/secure-express-routes#readme","_id":"secure-express-routes@1.0.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-RwwyNAnLnaEWpE2l/+iA8lSGDQIRo03AW+8TJ0YsoVCMxu6Ov2RyM8c6vE1E/YMFoSnvxw1aR7SieV06AnIBTw==","shasum":"352140627fa3e6943ecd11fab78e3af4edaad171","tarball":"https://registry.npmjs.org/secure-express-routes/-/secure-express-routes-1.0.4.tgz","fileCount":4,"unpackedSize":7548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMcDZCRA9TVsSAnZWagAANMoQAJPqQklryJnnE2oOzkJZ\nveivOuRTl3+b62oUnAaI68B0VozSKaKw3inbLNyA5wAxwPOF4sfr58cI3Fvp\noaW4816O57kRgMHMq1d/6qervA5OXptOYJ7Cosn7V+ZPM36+QxDdNARGTloY\nuA7N/ZtuLhw/czBT/C5/+Z1FCqx3Mup7gdzlOa+PrO1Dp2PV3inJAJQA0ExT\n32TpVf9C2kdRBYw5MtpVP74fa1MtOytZii0usMRBWcotkB30ombynhdMnSuP\n9PfiQ10nJc33Ez7bq6CJaPLTg1oIpEl2lkYdnNmgSG2abbKVNF8cOUISKmj2\nYN/YzalLvKQSg6vtTLcqcLIZKNOjGOf1Zfhce7D9KH4U4ztl7GdbFro5ld5V\nYKHBEw4fH3yDTMAwhhRkRZ29onGo5o6qaxZCPRglERymmtxHOaGzSdx8d6RX\nA9KYYKnmEbTt1iZL10eVmVl4Cu6DmB2aLEz2YyqlfjlE/7ClYAuyuzLeWqTs\nWuLFMiM+0DvNwl7ca8S36C5lTiQb06QoptB6ll0YRPKvYhowMt1yEPo/qpHv\nxQGDk51TRKaDlftvnt70GZ7I89NOyckPVgdM/D0guI2FuL8E9Rjfn6aQtths\nRojNeryPdcYQGVDQlUrbmShXPAEcBTJWsUSabThtpQaUcH3+R4CR6Os2GnRi\ncX5T\r\n=13sz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDcyUG3DZrDtQomVD9Jx4g1n00cpawdgppU6p2Q5PCdbAiEAqd90SXe33UsmAwMdwKxRtvp6Ae8dHrqCJVcNxewDFJI="}]},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"_npmUser":{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-express-routes_1.0.4_1563541721358_0.21100515826805877"},"_hasShrinkwrap":false},"1.0.5":{"name":"secure-express-routes","version":"1.0.5","description":"Middleware you can use to lock down all your express routes by default","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rouanw/secure-express-routes.git"},"scripts":{"test":"mocha"},"keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","devDependencies":{"express":"^4.16.4","mocha":"^6.2.0","supertest":"^4.0.2"},"dependencies":{"path-to-regexp":"^3.0.0"},"gitHead":"d100d6c8beeab70144b92b2a228cc6fe3c6c03aa","bugs":{"url":"https://github.com/rouanw/secure-express-routes/issues"},"homepage":"https://github.com/rouanw/secure-express-routes#readme","_id":"secure-express-routes@1.0.5","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-NOnGEAp6aEn/lXHPE5wRqP9UdOwyhP5CCKCPoa4sqlZ9NreH9vagIumVRZtSYwf/eRq+DYyS42Ggz5VdcgknAg==","shasum":"642603793b7780719cbe84eb3d6f41bc0ba8a67f","tarball":"https://registry.npmjs.org/secure-express-routes/-/secure-express-routes-1.0.5.tgz","fileCount":4,"unpackedSize":7548,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfICGRCRA9TVsSAnZWagAAQTUP/0BlTKnz5upJkUjZvau6\nukAuUoRps50G1aNDZRHL33BmWWvWtgojnJWXwMMR469gPho7/5rGceoySEGu\nHvwVcJdxxNtWO805yt5gioAxn4w2OzVio6a4z7PTY7ziWx8x9mbrMcIgYwH1\nArS3/jniOPsis6U96z5U/q/GQtUgdQm5D59fGjOgPq7StmhkEwjMdRgXcZk8\niOmFnw1FXprrgzVY2/pMxI0aq7V4ZzSP0QJxrFniLIRXds2uG8o9/CP2DzJz\nIAQFcW6UiVVTlI4gPRg5FlgOpwwqm/ZTo2ouItUm15WyAKmJk37GQLlVmkhA\nt7yxYuuE4Gjd7XNvj+Rc+WShw2psTU4VnPsSD4bjLyrAowoLZNbQhXxX48qY\ncz97aatqdvOkbsCmvqiHaohPqjN/vqBvZg/U/MJCjJz29D/dx0Ri1E0Admnw\nenGzF96bDfB88J3TzAhfm65GtBT8X+wsW8yE1HsJHtUuJ6Z3nfKGhw4LnL9o\nN1XGeafQ6tVq7cjIMF6tjNAdtztYH6F4Sc1r6sYczGPAy+OVnvX+KkBKYLV1\nTB/fR/FtswN8ETM90JE7ygGG5c5l4Ekp7Zqyvm4hBJo0xe6w6g7f3lnlm22F\nO//ONTQVZlQ4Tcm40BPVCCRSkkEPwi9ZO3lI/bTEdeKGDxSuRl8f0TX8TuU6\nmisv\r\n=xWg0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjMqycRAnwbiNIR15ZvYFPnz08jpZitqALFulTSOZBRAIhAIeIy//PnMtkine6H4EgFx04Qjk90Kj3QOOkBSFUH/nT"}]},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"_npmUser":{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/secure-express-routes_1.0.5_1595941265497_0.5425514637066717"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-02T09:09:58.371Z","1.0.0":"2019-05-02T09:09:58.506Z","modified":"2022-05-17T09:25:08.790Z","1.0.1":"2019-05-03T13:59:46.511Z","1.0.2":"2019-05-08T12:38:57.898Z","1.0.3":"2019-05-08T14:35:29.258Z","1.0.4":"2019-07-19T13:08:41.467Z","1.0.5":"2020-07-28T13:01:05.627Z"},"maintainers":[{"name":"rouanw","email":"Rouan.Wilsenach@tesglobal.com"}],"description":"Middleware you can use to lock down all your express routes by default","keywords":["express","secure","security","lock","default"],"author":{"name":"rouanw"},"license":"MIT","readme":"# secure-express-routes\n\n> Express middleware you can use to lock down all your routes by default\n\n## Limitations\n\nTurns out that this approach is probably not suitable for most applications. `secure-express-routes` can’t access `req.params`, because that’s not set until the middleware defined on an actual route is run. Any applications that use `req.params` for permission checks, won't be able to use this library as a viable option. See expressjs/express#2088.\n\n## Disclaimer\nThis package doesn't actually do anything to secure your routes. It just makes returning a `403` the default for every route in your application. What security you need will be specific to your scenario.\n\n## Use case\n\n`secure-express-routes` is for express applications that expose routes that need to be protected. Without it, your run the risk of accidentally exposing sensitive data or private functionality. For example:\n\n```js\napp.get('my-secret-things', checkIsAuthorized, checkPermissions, revealSecrets)\napp.get('my-secure-things', checkIsAuthorized, revealSecrets)\n```\n\nIn the above example, the `my-secure-things` route is not doing any permission checks, because someone forgot to add `checkPermissions` to the chain of middleware - an easy mistake to make!\n\nWhen using `secure-express-routes`, your application will return a `403` unless you add some code to let the request through, thereby making your routes secure by default.\n\n## Installation\n\n```sh\n$ npm install \n```\n\n## Usage\n\n```js\nconst express = require('express');\nconst secureExpressRoutes = require('secure-express-routes');\n\nconst app = express();\napp.use(secureExpressRoutes({\n  '/example-route': (req) => {\n    return !req.user.looksSuspicious; // whatever authentication and authorization checks you need\n  },\n  '/public-route': () => true,\n}));\n\napp.get('/example-route', returnSecureThings);\napp.get('/public-route', returnPublicThings);\n```\n\n## API\n\n`secure-express-routes` is a simple express middleware. It takes two arguments:\n\n### A hash of your application's routes and associated auth functions\n\nWith the structure: `{ [routePath]: authFunction }`.\n\nExample:\n\n```js\n{\n  '/example-route': (req, res) => {\n    return !req.user.looksSuspicious && res.locals.allowedIPAddress; // whatever authentication and authorization checks you need\n  },\n  '/public-route': () => true,\n}\n```\n\nWhere `/example-route` and `public-route` both correspond to express routes in your application. The `authFunction` will be passed the express `req` and `res` object for inspection. If the function returns `true`, the middleware chain will be allowed to continue. In all other cases, the middleware chain will terminate and a `403` will be returned.\n\n### A options object\n\nExample:\n\n```js\n{ responseCode: 404 }\n```\n\nOption|Description|Default\n---|---|---\n`responseCode`|The HTTP response code to return by default|`403`\n\n\n## Performance\n\nBecause `secure-express-routes` iterates over an array of routes on each request, it may get slow with for applications with lots of routes. A workaround will be to split your routes into different routers and have one `secureExpressRoutes` instance for each router.\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://github.com/rouanw/secure-express-routes#readme","repository":{"type":"git","url":"git+https://github.com/rouanw/secure-express-routes.git"},"bugs":{"url":"https://github.com/rouanw/secure-express-routes/issues"}}