{"_id":"express-enforces-ssl","_rev":"30-41e3e10a37c655602cbec7d059d8f2dd","name":"express-enforces-ssl","description":"Enforces SSL for node.js express projects","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"express-enforces-ssl","version":"0.1.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.1.0","dist":{"shasum":"055337a78d75fbf3b73e14008ea0363a5a9845c0","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.1.0.tgz","integrity":"sha512-qwWba/u1FuDZIWu9kWUgtTfi9d9GkQyt1Ex1yd+Z/COFi4nQnpabQL+ZvqhPzirXaoiTv3LbjjwjTLuz89LZWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwoWsAD0a7659b1BlEOG4MpQARFDH3Kx01wE8CRYd1twIgeJameyO5JyejDaGLxpxWS6+sM8Hg2FzhTrPU+/sZhgw="}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"0.2.0":{"name":"express-enforces-ssl","version":"0.2.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.2.0","dist":{"shasum":"68e312016040b9eb335ca148e517923f60ef2c5d","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.2.0.tgz","integrity":"sha512-mTQ26fy01L61DRUBknI9/on4cmTVAuUiTI5yR9KFTWTuuVeXXI8SB2gild752rV4izdVL5vMyA/kXJPJnfkzYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlocgaoTsXcrGyEWF/o6yEQdGY4wOCdI+KyDUy5YmE0AiEAoXN7IdJXxygE6kZKOWeSMWLBnsOA7PpbalmIW1iIds0="}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"0.2.1":{"name":"express-enforces-ssl","version":"0.2.1","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.2.1","dist":{"shasum":"c56defb06cc73fa656869af06461f37dee0f846f","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.2.1.tgz","integrity":"sha512-mYMfNQCGFe5kymqvVqdaiERXprJFY5mLvXqMS1vimohAeFZYC3CzGcm2a0MORqGBEwy3MWzRm9U2AWJaHENmTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuD78KeAMlRyIlMe8z1uDnsZ0BAXmiUD72XeQUHRCgTAiEAg+F8WSc73b9jQ0SDSJsCLvHdygzWvUrd9lcXwfSM3LQ="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"0.3.0":{"name":"express-enforces-ssl","version":"0.3.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.3.0","dist":{"shasum":"e2fe662041adb99db3823e02367818fa636fcd7e","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.3.0.tgz","integrity":"sha512-7+Mu6kEYxp3s3nVSe/wkPBiXAG3YPA4KqyjdHNu4Fo3Qm6tD9s4SmrJUjQp6X1Yo3SJRPUmtbdRehRTA1W801A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMG9QhXhXnkxtigGFg1YCFKX/8Td2hjTtDx4WkasgGOgIhAJh9yyZjCIDCC2dGgbXirrzNOQYDaen51Ng4EpGUNyuL"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"0.4.0":{"name":"express-enforces-ssl","version":"0.4.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.4.0","dist":{"shasum":"edf59814dca8b68c67c453fba002edfb598729ba","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.4.0.tgz","integrity":"sha512-1pc3/fmOfODNQ1dHP4MhyKbsujuW7s4bRCIe9Dy9E4ZXkiNr74mwBjC2bugXDdq2m55EgO+XWKpXlZK4DhFryQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHziQRcBRhC2T2OYzaIIOPZ54rrM+5GJnw54d/8Bj5noCID1USIPrrs9LshkF7dAD7chfAPt+LqY4ouTwdUxE/KBW"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"0.5.0":{"name":"express-enforces-ssl","version":"0.5.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.5.0","dist":{"shasum":"f6ad16e31a6286397bca6c0b62ffbd54f85887a0","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.5.0.tgz","integrity":"sha512-M7Yu+rx2LiJ+6UswcmM6R2mEx3Tu3vAj6afxobpwNnCMw/bgv5BdfsI2YegnzF/l7z7+nZrNzrYpFixHzVV4Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgiCZr7Pemj8gwwKw2qPDGD/Swj5wNrESQc0POYzAvPAIhALcY37yVcp9ZivjqkhqTVLMeJeUHkqpnRyZ9mPdx0xcR"}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"0.6.0":{"name":"express-enforces-ssl","version":"0.6.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@0.6.0","dist":{"shasum":"86a6abd2acd871d646b55dddf09aa4905ff081ed","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-0.6.0.tgz","integrity":"sha512-gD/Z8ilj7bp76CoZkkcFUkp6MlhjOpf8l9UKkOPEKT5QA6wDyXSNUFhAL69afDsJxxTEuiE8l2EU3VtgMmfNEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT6WhZEoogdOMlAkkHFG1oy+2TLdXVahVoq/jVLERkxwIgGI40aSU2vgtbNHTTSYs8+ydLyd2QPgvyBnxC1tgZeWE="}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"1.0.0":{"name":"express-enforces-ssl","version":"1.0.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@1.0.0","dist":{"shasum":"79a93c21d037f207a724c14c37f9dce3153a3812","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-1.0.0.tgz","integrity":"sha512-y19hykl8N7x7CoCJqZz/DH2q75Vsr7WC+spDIOJ9hzWNjizPhr6Jb7M9HrYeYFVzj/csHPDxS/NHyPvUSnWmIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrKfibYJo3pyh8WkfEMsUoc5R/R1ExDWu2eBYElNBEbgIgC3ZkKCIDlWu2ZMmzbhrvnNEYVSA2MAZ56cLx+XdxVtU="}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]},"1.1.0":{"name":"express-enforces-ssl","version":"1.1.0","description":"Enforces SSL for node.js express projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"homepage":"https://github.com/aredo/express-enforces-ssl","_id":"express-enforces-ssl@1.1.0","dist":{"shasum":"cf29c6a61c5bdd802e2c7ed265a4a98e7487d1ac","tarball":"https://registry.npmjs.org/express-enforces-ssl/-/express-enforces-ssl-1.1.0.tgz","integrity":"sha512-s2p9nh2Q2++9XAqZqyCORk7KQTfrfKqB/Y5A4VfyRnwMQ2D6cHdDrZhvvGOV3FURTPuO3a6f9AD2Eso1pIo6CA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPTOH8bODU4x9asX7l7RB3D5MgBul377hyisTW9t6+pAiEAytc92jUO3kJ4Nall94MQV3Ozo39F/ljnUoqf4P9FTjE="}]},"_from":"./","_npmVersion":"1.4.3","_npmUser":{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"},"maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}]}},"readme":"express-enforces-ssl\n==============\n\nThis simple module enforces HTTPS connections on any incoming requests. In case of a non-encrypted HTTP request, express-enforces-ssl automatically redirects to an HTTPS address using a 301 permanent redirect.\n\nexpress-enforces-ssl also works behind reverse proxies (load balancers) as they are for example used by Heroku and nodejitsu. In such cases, however, the `trustProxy` parameter has to be set (see below)\n\n### Usage\n\nFirst, install the module:\n\n```\n$ npm install express-enforces-ssl --save\n```\n\nAfterwards, require the module and *use* the `HTTPS()` method:\n```javascript\nvar express = require('express');\nvar http = require('http');\nvar express_enforces_ssl = require('express-enforces-ssl');\n\nvar app = express();\n\napp.enable('trust proxy');\n\napp.use(express_enforces_ssl());\n\n/*\n    Routes Here\n*/\n\nhttp.createServer(app).listen(app.get('port'), function() {\n\tconsole.log('Express server listening on port ' + app.get('port'));\n});\n\n```\n\nLICENCE\n\nMIT\n","maintainers":[{"name":"hengkiardo","email":"hengki.sihombing@gmail.com"}],"time":{"modified":"2022-06-17T22:16:26.997Z","created":"2014-05-24T05:06:37.805Z","0.1.0":"2014-05-24T05:06:37.805Z","0.2.0":"2014-05-25T15:21:07.712Z","0.2.1":"2014-05-25T16:10:47.962Z","0.3.0":"2014-05-25T16:29:40.247Z","0.4.0":"2014-05-25T16:59:41.746Z","0.5.0":"2014-05-29T18:22:14.535Z","0.6.0":"2014-05-29T18:26:29.855Z","1.0.0":"2014-05-29T18:38:41.889Z","1.1.0":"2014-06-04T11:28:56.938Z"},"homepage":"https://github.com/aredo/express-enforces-ssl","keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect"],"repository":{"type":"git","url":"https://github.com/aredo/express-enforces-ssl"},"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"bugs":{"url":"https://github.com/aredo/express-enforces-ssl/issues"},"license":"MIT","readmeFilename":"README.md","users":{"markthethomas":true,"grantcarthew":true,"hckhanh":true,"pablo.tavarez":true,"mr-smiley":true,"paraself":true,"pl0x":true,"mhaidarh":true}}