{"_id":"strict-transport-security","_rev":"11-831e2d346da54847be8867e4750beddf","name":"strict-transport-security","description":"Middleware to add Strict-Transport-Security header.","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"strict-transport-security","description":"Middleware to add Strict-Transport-Security header.","version":"0.1.0","author":{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},"keywords":["express","connect","strict-transport-security","Strict Transport Security","security","SSL","TLS","HTTPS","sts"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"repository":{"type":"git","url":"git@github.com:samuelerdtman/strict-transport-security.git"},"bugs":{"url":"https://github.com/samuelerdtman/strict-transport-security/issues"},"main":"./lib","dependencies":{},"devDependencies":{"mocha":"1.13.x"},"scripts":{"test":"mocha -u tdd"},"engines":{"node":">= 0.4.0"},"_id":"strict-transport-security@0.1.0","dist":{"shasum":"8cf90c77778dec0f2f833e01b8107b09c79ad089","tarball":"https://registry.npmjs.org/strict-transport-security/-/strict-transport-security-0.1.0.tgz","integrity":"sha512-6IweyZyL1XFV2xHBx+rGOdkXHQaXufyaAKrBov/C3o5nTk/RNCUNisjSnOzgcx2R+wSH0niPmE+gHnQF2DnF3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPeVfP9l0p08x/E3thSwWCNRzshwnHVF3cnFGl8mJO8AiA2Xqxe89iss1kMndCftp6wfRucp3SHwabxpbaP3q3oCQ=="}]},"_from":"./","_npmVersion":"1.2.32","_npmUser":{"name":"samuelerdtman","email":"samuel@erdtman.se"},"maintainers":[{"name":"samuelerdtman","email":"samuel@erdtman.se"}],"directories":{}},"0.2.0":{"name":"strict-transport-security","description":"Middleware to add Strict-Transport-Security header.","version":"0.2.0","author":{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},"keywords":["express","connect","strict-transport-security","Strict Transport Security","security","SSL","TLS","HTTPS","sts"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"repository":{"type":"git","url":"git@github.com:samuelerdtman/strict-transport-security.git"},"bugs":{"url":"https://github.com/samuelerdtman/strict-transport-security/issues"},"main":"./lib","dependencies":{},"devDependencies":{"mocha":"1.13.x"},"scripts":{"test":"mocha -u tdd"},"engines":{"node":">= 0.4.0"},"_id":"strict-transport-security@0.2.0","dist":{"shasum":"3249c2b4af8c50e4a6c4b8ea35654cc9b59a1fe0","tarball":"https://registry.npmjs.org/strict-transport-security/-/strict-transport-security-0.2.0.tgz","integrity":"sha512-WniqkAZTvJjGl1ooy1kunQYRWWXhgdZimSHi12UzrBbMQjc+RjsZeuQj99DhK4gqb0FKEbFBq0TrBCFgsAOQMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3xgkRy0Xdxcr2l5O9mYq7ZOk9KtWMp2psiGa7bREB/AiBgDaLKMAVVwdkZdnVJjisjLdGm7iUDOHjNe1vHmBjWUg=="}]},"_from":"./","_npmVersion":"1.2.32","_npmUser":{"name":"samuelerdtman","email":"samuel@erdtman.se"},"maintainers":[{"name":"samuelerdtman","email":"samuel@erdtman.se"}],"directories":{}},"0.2.1":{"name":"strict-transport-security","description":"Middleware to add Strict-Transport-Security header.","version":"0.2.1","author":{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},"keywords":["express","connect","strict-transport-security","Strict Transport Security","security","SSL","TLS","HTTPS","sts"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"repository":{"type":"git","url":"git+ssh://git@github.com/samuelerdtman/strict-transport-security.git"},"bugs":{"url":"https://github.com/samuelerdtman/strict-transport-security/issues"},"main":"lib/index.js","dependencies":{},"devDependencies":{"ava":"*","live-server":"*","npm-run-all":"*","nyc":"*","semistandard":"*","watch":"*"},"scripts":{"clean":"rm -rf coverage/ .nyc_output/","pretest":"semistandard","test":"ava test","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls","live":"live-server -q --port=4003 --ignorePattern='(js|css|png)$' coverage","watch":"watch 'npm run coveragehtml' test lib","dev":"npm-run-all -p --silent watch live"},"engines":{"node":">= 0.4.0"},"gitHead":"a83be1e6073b2c21eeaaf5d60f98670306a2c4eb","homepage":"https://github.com/samuelerdtman/strict-transport-security#readme","_id":"strict-transport-security@0.2.1","_shasum":"df97bbd38f7ee6b2c3502fabdf23317087c72503","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"samuelerdtman","email":"samuel@erdtman.se"},"dist":{"shasum":"df97bbd38f7ee6b2c3502fabdf23317087c72503","tarball":"https://registry.npmjs.org/strict-transport-security/-/strict-transport-security-0.2.1.tgz","integrity":"sha512-FyMvnFWrvhihVPN911Xpl42FYOkKBb3aU1968T554Ao3CcWm0fGc85rK9RsSYviIPztZ7IPxEUVsxL1h6cnXWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDENry9d7ymr8shcKW2jaE6S6ODCFAqwFy5sZED1V20UgIgFzqbmSKXR8sQSX3Ax/pF4C94G26ZSKB4J/KQloI53gg="}]},"maintainers":[{"name":"samuelerdtman","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strict-transport-security-0.2.1.tgz_1511474703883_0.9569370250683278"},"directories":{}},"0.2.2":{"name":"strict-transport-security","description":"Middleware to add Strict-Transport-Security header.","version":"0.2.2","author":{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},"keywords":["express","connect","strict-transport-security","Strict Transport Security","security","SSL","TLS","HTTPS","sts"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"repository":{"type":"git","url":"git+ssh://git@github.com/samuelerdtman/strict-transport-security.git"},"bugs":{"url":"https://github.com/samuelerdtman/strict-transport-security/issues"},"main":"lib/index.js","dependencies":{},"devDependencies":{"ava":"*","live-server":"*","npm-run-all":"*","nyc":"*","semistandard":"*","watch":"*"},"scripts":{"clean":"rm -rf coverage/ .nyc_output/","pretest":"semistandard --fix","test":"ava test/*.js","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls","live":"live-server -q --port=4003 --ignorePattern='(js|css|png)$' coverage","watch":"watch 'npm run coveragehtml' test lib","dev":"npm-run-all -p --silent watch live"},"engines":{"node":">= 0.4.0"},"gitHead":"056fc812fac4f17a1ae1470e0d03e57cc480333d","homepage":"https://github.com/samuelerdtman/strict-transport-security#readme","_id":"strict-transport-security@0.2.2","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+VGEjZbFYVBfe+f2Tk0x3h5wOWqPOJ0TNzMm8MdFdGT+pyC/yViwfXnPslV0OxhVy7CZ8jm917Ya7uTCnAa+HQ==","shasum":"ab1d548915a843d4314f7a9b1019462efd645bd0","tarball":"https://registry.npmjs.org/strict-transport-security/-/strict-transport-security-0.2.2.tgz","fileCount":10,"unpackedSize":10245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM9XjCRA9TVsSAnZWagAA4bgP/jE6Qp04H4DJ12ah5K2c\ng+opxbDDLnQ0bXLGTb30C3P4WNxabQFFKVjIyhm7k+3P3wJ/0o/ad347uzKt\nvPnp011a/rkJM55OIE338HIi0w6Jot+utvuFYo7drYaRoz/Txbss/3f99DhZ\nzeTdjLXnIRZn30E/PFCvSVWtPycCulVx8UJjHaVz4l8L9P5gBdGBNNyDj0ZN\nzs880I7w9UbdBPtbnvYhs4wm+IEx6lQdRuYol2iL7sr2ZyVvlWC/S0xErUBW\nw3BtwxrqO5Jz3uiFAMAzCjhrgEZFPtJz8p6h1r3QfDEn+Oco+QWNy6yIbhM6\nOWrEn7bJWRyAetNxzRjE9Ne52mnZ7f0gAJ/glev5D8rS+p5+osmVxxQyNcCB\nf6nBI0H3GY7vq+QFD3npKdZwYQuhOgD4/9O3eV94SeKknOIppPXfyRAP1F2Z\nTVR8tnGW6/TYHIjbSFDQhXAIxXzUh1EChgIrqudjafhrEprpijllDyyGD5o3\nJENmtglMtmFmbsthu2g85l185JwMP6ztqMlb5xcm0/brLs68eFNX/7Z4e0RS\nf3RcvHMKMtrLdG323odzUArmExV0S5KQWoy/K6b9fejl9PXOp0q1ctz+6fEt\nExlxJAdIA3YVExqDPOx6BBNIzCSskk/hamm+QORBeGf1tYlMb6hYitD9EXdc\n3wUJ\r\n=7o7W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1psJ+dqDjugIze8lwn/yduv0ouraXhM5C7V++29dpCAiEA/eU5LSYzW0RWs3GVBxFFyB5P5bIeoG0URZx1ibWvR1M="}]},"maintainers":[{"name":"samuelerdtman","email":"samuel@erdtman.se"}],"_npmUser":{"name":"samuelerdtman","email":"samuel@erdtman.se"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strict-transport-security_0.2.2_1597232611290_0.934056000256102"},"_hasShrinkwrap":false},"0.3.0":{"name":"strict-transport-security","description":"Middleware to add Strict-Transport-Security header.","version":"0.3.0","author":{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},"keywords":["express","connect","strict-transport-security","Strict Transport Security","security","SSL","TLS","HTTPS","sts"],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"repository":{"type":"git","url":"git+ssh://git@github.com/samuelerdtman/strict-transport-security.git"},"bugs":{"url":"https://github.com/samuelerdtman/strict-transport-security/issues"},"main":"lib/index.js","dependencies":{},"devDependencies":{"ava":"*","live-server":"*","npm-run-all":"*","nyc":"*","semistandard":"*","watch":"*"},"scripts":{"clean":"rm -rf coverage/ .nyc_output/","pretest":"semistandard --fix","test":"ava test/*.js","coverage":"nyc npm test","coveragehtml":"nyc report -r html","precoveragehtml":"npm run coverage","coveralls":"nyc report --reporter=text-lcov | coveralls","live":"live-server -q --port=4003 --ignorePattern='(js|css|png)$' coverage","watch":"watch 'npm run coveragehtml' test lib","dev":"npm-run-all -p --silent watch live"},"engines":{"node":">= 0.4.0"},"gitHead":"d41788245cb77d91846116517d623233ca5954e8","homepage":"https://github.com/samuelerdtman/strict-transport-security#readme","_id":"strict-transport-security@0.3.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-kFE7mnIaiHGmPTdfeME+vEW2WDAPu0H7CNSbA+WuCMXRiadAfOOX/SfOj9NV/2ANc2z5JHMG9lnSvSaj3I+9sQ==","shasum":"8d8665de1553079a63b09a86d55a1a01d83c93e3","tarball":"https://registry.npmjs.org/strict-transport-security/-/strict-transport-security-0.3.0.tgz","fileCount":6,"unpackedSize":6059,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpHRBCRA9TVsSAnZWagAAQ1cP/jXkaI5pz/R4D9C0zOi4\n0kRIABZfy6s0rpUzpLtHTzNreoJBA7OA6/uAx1i6189SxAVyNYWfiwe3m1pt\nO4dAmkAv9dYq64c5pGKQlc6RA0l2pZ8S23VsSSZE69hcYRygdVifdFKuJ5fz\n3oHN1i8CfR5VT0bAWjXFzHicFACLSRiHbjvJvqqcJU3rH03Zh4t3nk1lguPG\nuxDmAQGHCcpy/hrtRNWxKNUwT2eotqGv6IlC4ExETk3/EO3XS00salW6ujFe\nxRVVww7SnYMlRcRUNeQrSQGzjCsZ2Lt4YW4ek65D95jJBsQtefYDkqFePJVz\nA5/cKS6Wbpd/IFnWee1whfJ/dCizoj3ArYxufQoxgtdoUvJIi407DFGOQ5nq\nZ+IRGylf1vsG4b24GPk85jOaQ+FA0laW0IGCzJhEQ3xXOqnEltpFcCtD/qkQ\n1CkcRlrHzS59aZO0nmlwgj4iwXmsnr/KRQhP2XEHfPYGtnADJAwUnpDkWF5x\nf7seSjUk6iGiqyqwTLhmkxj/M8MaYXjOtBLXutDQlS1ymCAnbC3DqbeQsE7q\nF35PTO4LtvR13C/BTSa8BUCMlADdqENL4F16BkZhUw6WknWV1pHB/sfiFbEW\nv2obOgqsM019OHhvMuxAkUWt0XohdWSGs7v1XF8XtduVKxvNVbbWH2hm17Qc\nCIbg\r\n=bWvE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnYpMaO6zHTjGzTC8cJgmYaCi0ncbf0dPk20jsZAoKXAIgWQqjafC8d4MeyB9EvfrLcRenF9tEniMLtkf0iDEDg2k="}]},"_npmUser":{"name":"samuelerdtman","email":"samuel@erdtman.se"},"directories":{},"maintainers":[{"name":"samuelerdtman","email":"samuel@erdtman.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strict-transport-security_0.3.0_1604613184714_0.082485331922312"},"_hasShrinkwrap":false}},"readme":"\n[![Build Status](https://travis-ci.com/erdtman/strict-transport-security.svg?branch=master)](https://travis-ci.com/erdtman/strict-transport-security)\n[![Coverage Status](https://coveralls.io/repos/github/erdtman/strict-transport-security/badge.svg?branch=master)](https://coveralls.io/github/erdtman/strict-transport-security?branch=master)\n# strict-transport-security\n\nNode.js middleware to add Strict-Transport-Security header according to [RFC6797](http://tools.ietf.org/html/rfc6797)\n\n## Install\n```\n$ npm install strict-transport-security --save\n```\n## Tests\n```\n$ npm install --dev\n$ npm test\n```\n## Usage\n```js\nconst sts = require('strict-transport-security');\nconst express = require('express');\nconst app = express();\n\nconst globalSTS = sts.getSTS({'max-age':{'days': 30}});\nconst localSTS = sts.getSTS({'max-age':{'days': 10}, 'includeSubDomains': true});\n\n// This will apply this policy to all requests\napp.use(globalSTS);\n\napp.get('/', (req, res) => {\n  res.send('Using global strict transport security policy!');\n});\n\n// This will apply the local policy just to this path, overriding the globla policy\napp.get('/local', localSTS, (req, res) => {\n  res.send('Using path local strict transport security policy!');\n});\n\napp.listen(3000, () => {\n  console.log('Example app listening on port 3000!');\n});\n```\n","maintainers":[{"name":"samuelerdtman","email":"samuel@erdtman.se"}],"time":{"modified":"2022-06-27T00:57:57.088Z","created":"2014-01-19T03:53:23.397Z","0.1.0":"2014-01-19T03:53:25.624Z","0.2.0":"2014-01-20T10:57:25.064Z","0.2.1":"2017-11-23T22:05:03.953Z","0.2.2":"2020-08-12T11:43:31.458Z","0.3.0":"2020-11-05T21:53:04.889Z"},"author":{"name":"Samuel Erdtman","email":"samuel@erdtman.se"},"repository":{"type":"git","url":"git+ssh://git@github.com/samuelerdtman/strict-transport-security.git"},"readmeFilename":"README.md","homepage":"https://github.com/samuelerdtman/strict-transport-security#readme","keywords":["express","connect","strict-transport-security","Strict Transport Security","security","SSL","TLS","HTTPS","sts"],"bugs":{"url":"https://github.com/samuelerdtman/strict-transport-security/issues"}}