{"_id":"heroku-ssl-redirect","_rev":"13-e5f1d39de788e62c1273802990638b9f","name":"heroku-ssl-redirect","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"heroku-ssl-redirect","version":"0.0.1","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/paulomcnally/node-heroku-ssl-redirect"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","gitHead":"93147d7aa63454b6a5ac2e07a1372bbc8131dfc2","_id":"heroku-ssl-redirect@0.0.1","_shasum":"4a6ff9b2afc4fd3a77647e5d5b2cfda336cc5822","_from":"node-heroku-ssl-redirect/","_npmVersion":"1.4.21","_npmUser":{"name":"paulomcnally","email":"paulomcnally@gmail.com"},"maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"dist":{"shasum":"4a6ff9b2afc4fd3a77647e5d5b2cfda336cc5822","tarball":"https://registry.npmjs.org/heroku-ssl-redirect/-/heroku-ssl-redirect-0.0.1.tgz","integrity":"sha512-Xojpkibc+uWLla06XJp9UGXKb2ro4gKR5u7joqIknlj1g6zYV9z7RmHqXW5INqL0b8Yt4LlpcLBKfV+bpj1tVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClzfl63QilWFjvuf6cmoZCEt985WPZ3jUqyKdysPOL7QIhAI4RLOLZWN+QiBDS4b1epy7FuC+f+HmtU+HZ2VCrLVU/"}]},"directories":{}},"0.0.2":{"name":"heroku-ssl-redirect","version":"0.0.2","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/paulomcnally/node-heroku-ssl-redirect"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","dependencies":{"underscore":"^1.7.0"},"gitHead":"54a290960d99e65bfeb3c9dda4febef10cce0d8b","_id":"heroku-ssl-redirect@0.0.2","_shasum":"1f80a14264e35e6169667f644976f1c91e85ede6","_from":"node-heroku-ssl-redirect/","_npmVersion":"1.4.21","_npmUser":{"name":"paulomcnally","email":"paulomcnally@gmail.com"},"maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"dist":{"shasum":"1f80a14264e35e6169667f644976f1c91e85ede6","tarball":"https://registry.npmjs.org/heroku-ssl-redirect/-/heroku-ssl-redirect-0.0.2.tgz","integrity":"sha512-0JIozUbokVq7tfuWh95YnD8bzIegWqPOhrgRgd602H8kofVGy1fN6XF3x4PDT/3kh+C8TYZ1qI8MIbWesTZnUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaLB5n3hQftsMZoYSNzzqL6L5LF7X7BRo74FkH/H0ZJgIhANPQAAxkyFgWlBAwEjoSFyTwpsM/StGuKg08LvtikGtj"}]},"directories":{}},"0.0.3":{"name":"heroku-ssl-redirect","version":"0.0.3","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/paulomcnally/node-heroku-ssl-redirect"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","dependencies":{"underscore":"^1.7.0"},"gitHead":"51d775ae4006d32cb6add3db34d2f9ebb613c528","_id":"heroku-ssl-redirect@0.0.3","_shasum":"2f9f02696594251e2a1ad01f9a5d5e2cb9fdab24","_from":"node-heroku-ssl-redirect","_resolved":"file:node-heroku-ssl-redirect","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"paulomcnally","email":"paulomcnally@gmail.com"},"maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"dist":{"shasum":"2f9f02696594251e2a1ad01f9a5d5e2cb9fdab24","tarball":"https://registry.npmjs.org/heroku-ssl-redirect/-/heroku-ssl-redirect-0.0.3.tgz","integrity":"sha512-tW04jhLZ0KRmQWG4QiPZd4UDAZp7mp2V1VOcAkcdZy3KoXA7K+Og+Q+GYMdninbBdIqK9sgEG0SVlv379bcn5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWCuzllsuD0OBXIAcpmOHj2oJPqhGqnwH7MZjwSfwleQIhALg94JHNRI5ce8cVeEatKrf7P0XHwDXU/XgrlNG4BBQg"}]},"directories":{}},"0.0.4":{"name":"heroku-ssl-redirect","version":"0.0.4","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/paulomcnally/node-heroku-ssl-redirect.git"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","dependencies":{},"gitHead":"40ccfc57897d74ea440e3f32b01627b28ebc3615","_id":"heroku-ssl-redirect@0.0.4","_shasum":"21ba0707aa503b50a412a0946abfaa88ef7d082c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"paulomcnally","email":"paulomcnally@gmail.com"},"dist":{"shasum":"21ba0707aa503b50a412a0946abfaa88ef7d082c","tarball":"https://registry.npmjs.org/heroku-ssl-redirect/-/heroku-ssl-redirect-0.0.4.tgz","integrity":"sha512-eZ5bzgayDTYdsUBlokulVfdCcENqTeKACwEEZ+aIPPaASA8v77nDHDtz61uU/keWXX+aljC8SUSuabHB33jIOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkJaaMrEv7JDartr5hr3Ko8e9RQybV5OJW33visNrFDQIhAJvkfXNIhnVjdezkjnJFEiu3O4iyQZA5o2XW3oW9P5te"}]},"maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/heroku-ssl-redirect-0.0.4.tgz_1494798842927_0.5775847169570625"},"directories":{}},"0.1.0":{"name":"heroku-ssl-redirect","version":"0.1.0","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist/ && tsc","test":"jest --verbose","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/paulomcnally/node-heroku-ssl-redirect.git"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","devDependencies":{"@types/express":"^4.17.2","@types/jest":"^26.0.7","jest":"^26.1.0","ts-jest":"^26.1.3","typescript":"^3.7.5"},"gitHead":"61381f6d55ca93d98d5ddb3f40635dcb6349892b","_id":"heroku-ssl-redirect@0.1.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-hv3R4uRpctRYfzFDmkZ8UHSydx9xPi8L92pKikavUGL/DsQWxC4CWgI+ZqaNEZp5G2rH7GWkbwNJdh3l93/JnA==","shasum":"38c0b973c9caf29fbda623a0a1e465511ac8e9b2","tarball":"https://registry.npmjs.org/heroku-ssl-redirect/-/heroku-ssl-redirect-0.1.0.tgz","fileCount":6,"unpackedSize":4724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfL4qHCRA9TVsSAnZWagAAPL4P/3JV0UD8/J2YqWxYHIEO\nlU64fWkm4Oces38xbOpBV/KaDZ0Z4gRpbEV2grueJYRDXn+POQAzI/rDvJt0\n1LCVnXYGxKN+jb2+YJx1Qh2RPwMyB1w4gtmq5falI7wNzDerCkgocuo6vTub\nPlOPqT/DLP1B3pB3ob30uISHvUKycPiRKQ/BhsRg6x5KiMF9LzxKkcIOlFQf\ncTtZmbqhOaVeoQTNNduDGwRj8bVUsHCHx04Ka800eGomODgl7aIofj8rUTe5\nV7wSHabgnI538UCWjAJzsQvKw77FpM8tis7B/JdRHj+SAESv9pENj5tEkp2n\nU5PlUHYRc2quU70tC/vhlz4/+oRYhSGpiQ7Ryn5iIqNx60Llz7R5Die+t5AV\nKuOGzUJqkw+duReRcihirdFmoDcxaD9iekGZvOoa4k16uDoBHG/Ik8Ei16vm\n1Vzk01XemZIeqANnGPsBHjp8tnjkGcRH2mQ7OYr0PDlrX4k5hJeFtlkmhESO\npH612r34x/LSgYEHBsnflOmkaMuojt3pCZRwtSoLooErRBnhleZXQUCvl16N\noqFNi3YDTd4bfXVmiAVChFqLezZSkDyx/JsiTvPmKpzvLLY7TytIrYB4bS25\nJL55RUgGYGJkyCa6+S+k2L4U8Zsjh6/3Zxgvh2p274jq7y5iP6YhRU7KFgmi\nomPu\r\n=4Lgv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqALknXEv6yzh3xRU35/7LFXJb8iTfWcncrVfqIhtz6AIhAKHDJOcGXKyLAyzkMMhKQT5CrGM9ArjNqWfL6rd9oY2g"}]},"maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"_npmUser":{"name":"paulomcnally","email":"paulomcnally@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/heroku-ssl-redirect_0.1.0_1596951175109_0.30187689394651906"},"_hasShrinkwrap":false},"0.1.1":{"name":"heroku-ssl-redirect","version":"0.1.1","description":"Redirect users to the SSL version of your app. For ExpressJS running on Heroku","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist/ && tsc","test":"jest --verbose","test:watch":"jest --watch"},"repository":{"type":"git","url":"git+https://github.com/paulomcnally/node-heroku-ssl-redirect.git"},"keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"license":"MIT","bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","devDependencies":{"@types/express":"^4.17.2","@types/jest":"^26.0.7","jest":"^26.1.0","ts-jest":"^26.1.3","typescript":"^3.7.5"},"gitHead":"87dc254783603e9801428fd2d5fa424136932971","_id":"heroku-ssl-redirect@0.1.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-kL/DvLR2J53iB3TXasQlo5JwF/j2L2zkala6Ddk9o6JwIPeDvbTGT9Aty8WElxcF389ObICCeyf2m7RKpCg5Bg==","shasum":"c55d60c0ec4473358ead66c75e8c7e99d9e8a689","tarball":"https://registry.npmjs.org/heroku-ssl-redirect/-/heroku-ssl-redirect-0.1.1.tgz","fileCount":6,"unpackedSize":4590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfL5HICRA9TVsSAnZWagAAiJAP/3Cm6LD+CxVWjsMGagw5\n6J3bWSNlb5p5lgXHmAeyK0vhs4bSGuNHzQuaDa2CeN+XsluentHj0eIzdGXR\n/JKYj02IsLNr/YFW8i93ut0dLXFDQaVIZIx/7UkBsqvus+UJkzHNjVBTDQqz\nWV6LE4IwR3Xob0jbdECjkK+zgUaSbeWkdyuCHwpBzeKmsoTLNhYl6FsyPk5w\naKQgq2mrc9ZIS1ecfr5BNcKid6pfo6PWSXo43ZzfWgtwTqHZF01pIGBNSuDl\n7ClR+7t/343YxLrHi1uxfBvQQcnVJxds7FMWT6yrIYtVNZ/OCusPKlXYBR3x\nrhuqwFfM0Sy+edCXqXapS90EEZATnOSkMG5fDE1kVgr2kqJdaE3wogZT30XP\n0oxV2iceYFxjk2E9I7hMWRKvOuxv9dQGvTQGv9LC65Jmqz8dcArtDvRz2vbF\ncHcAc7aUZhuvBGup18FT61X4+aaoOog67detSqTh6/SAeiywJ47sdoCRkUQi\nqiPAozBxKFXFCpzalqckeS55XUjjjoazVfzIMvTa2cuC7ZLtGoKftkHM0U7a\nNT9rf3uxlDHvQYWkZFch0cwny9Ng/LAGJ9xaGL0gH7gKCw8HemvYqvDNPVYu\nQrymxN3G51OZ6c5NQwbQ1YF3FvY26HcUpoLUYnrXBQtFe8SwgEuOLKndgn0p\nGXXc\r\n=dUqQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHXV/32Uvig7XEMcdfhzxcRIEukD0zOvNGBM6UHuvzaAiBNA/9971goA/7ptDeoES17anoIzgJ5mW8WdPZ8U/nKtw=="}]},"maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"_npmUser":{"name":"paulomcnally","email":"paulomcnally@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/heroku-ssl-redirect_0.1.1_1596953032053_0.64768409103374"},"_hasShrinkwrap":false}},"readme":"node-heroku-ssl-redirect\n========================\n\nRedirect users to the SSL version of your app. For ExpressJS running on Heroku.\n\nThis module works only with **import**, don't try to use **require**.\n\n### Installation\n\n```bash\nyarn add heroku-ssl-redirect\n```\n\n### Usage\n\n```js\nimport sslRedirect from 'heroku-ssl-redirect';\nimport express from 'express';\nconst app = express();\n\n// enable ssl redirect\napp.use(sslRedirect());\n \napp.get('/', (req, res) => {\n  res.send('hello world');\n});\n \napp.listen(process.env.PORT || 3000);\n```\n\n### Environments\n\nDefault environment is production, if you need enable redirect with other environment you need send an array argument.\n\n```js\napp.use(sslRedirect([\n  'other'\n  'development',\n  'production'\n  ]));\n```\n\n### HTTP status code\n\nBy default a 302 will be used to redirect. A 301 can be configured with the second argument.\n\n```js\napp.use(sslRedirect(['production'], 301));\n```\n","maintainers":[{"name":"paulomcnally","email":"paulomcnally@gmail.com"}],"time":{"modified":"2022-06-18T20:16:46.292Z","created":"2014-08-26T23:02:32.194Z","0.0.1":"2014-08-26T23:02:32.194Z","0.0.2":"2014-08-26T23:23:26.474Z","0.0.3":"2015-03-30T02:37:01.485Z","0.0.4":"2017-05-14T21:54:04.915Z","0.1.0":"2020-08-09T05:32:55.306Z","0.1.1":"2020-08-09T06:03:52.187Z"},"homepage":"https://github.com/paulomcnally/node-heroku-ssl-redirect","keywords":["express","expressjs","ssl","enforces","enforces-ssl","http","https","redirect","heroku"],"repository":{"type":"git","url":"git+https://github.com/paulomcnally/node-heroku-ssl-redirect.git"},"author":{"name":"Hengki Sihombing","email":"hengki.sihombing@gmail.com","url":"http://twitter.com/hengkiardo"},"bugs":{"url":"https://github.com/paulomcnally/node-heroku-ssl-redirect/issues/new"},"license":"MIT","readmeFilename":"README.md","users":{"hadifarnoud":true,"thomasmost":true}}