{"_id":"expect-ct","_rev":"1755348","name":"expect-ct","description":"Middleware to set the Expect-CT header","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"time":{"modified":"2021-11-29T01:35:24.000Z","created":"2017-05-04T22:28:04.735Z","1.0.0":"2020-08-02T16:55:57.674Z","0.3.0":"2019-09-01T19:11:45.015Z","0.2.0":"2019-05-05T00:19:34.598Z","0.1.1":"2018-05-16T21:15:12.290Z","0.1.0":"2017-05-04T22:28:04.735Z"},"users":{},"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"repository":{"type":"git","url":"git://github.com/helmetjs/helmet.git"},"versions":{"1.0.0":{"author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"contributors":[],"license":"MIT","homepage":"https://helmetjs.github.io/","bugs":{"url":"https://github.com/helmetjs/helmet/issues","email":"me@evanhahn.com"},"repository":{"type":"git","url":"git://github.com/helmetjs/helmet.git"},"engines":{"node":">=10.0.0"},"main":"index.js","typings":"index.d.ts","name":"expect-ct","description":"Middleware to set the Expect-CT header","version":"1.0.0","keywords":["express","security","expect-ct"],"_id":"expect-ct@1.0.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"shasum":"03c9b7f2973c9f422bce1fcd0cc1c15de0298dc1","size":2474,"noattachment":false,"key":"/expect-ct/-/expect-ct-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expect-ct/download/expect-ct-1.0.0.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expect-ct_1.0.0_1596387357583_0.003095836076277836"},"_hasShrinkwrap":false,"publish_time":1596387357674,"_cnpm_publish_time":1596387357674},"0.3.0":{"name":"expect-ct","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Middleware to set the Expect-CT header","version":"0.3.0","license":"MIT","keywords":["helmet","security","express","connect","expect-ct"],"homepage":"https://helmetjs.github.io/docs/expect-ct/","repository":{"type":"git","url":"git://github.com/helmetjs/expect-ct.git"},"bugs":{"url":"https://github.com/helmetjs/expect-ct/issues","email":"me@evanhahn.com"},"engines":{"node":">=8.0.0"},"main":"./dist/index.js","typings":"./dist/index.d.ts","scripts":{"pretest":"npm run lint","prepublishOnly":"npm run build","lint":"eslint --fix '**/*.ts'","test":"jest --config test/jest-config.json","clean":"rm -rf dist","build":"npm run clean && tsc"},"devDependencies":{"@types/connect":"^3.4.32","@types/jest":"^24.0.18","@types/supertest":"^2.0.8","@typescript-eslint/eslint-plugin":"^2.0.0","@typescript-eslint/parser":"^2.0.0","connect":"^3.7.0","eslint":"^6.3.0","eslint-config-helmet":"^0.2.0","jest":"^24.9.0","supertest":"^4.0.2","ts-jest":"^24.0.2","typescript":"^3.6.2"},"dependencies":{},"gitHead":"bfd9e449f991d079bf52ad8ddc16e35d4a8e5a4a","_id":"expect-ct@0.3.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"c41ceabe62f914a1df893e968e49c2a6beefb024","size":2660,"noattachment":false,"key":"/expect-ct/-/expect-ct-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expect-ct/download/expect-ct-0.3.0.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expect-ct_0.3.0_1567365104824_0.2981599622356048"},"_hasShrinkwrap":false,"publish_time":1567365105015,"_cnpm_publish_time":1567365105015},"0.2.0":{"name":"expect-ct","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Middleware to set the Expect-CT header","version":"0.2.0","license":"MIT","keywords":["helmet","security","express","connect","expect-ct"],"homepage":"https://helmetjs.github.io/docs/expect-ct/","repository":{"type":"git","url":"git://github.com/helmetjs/expect-ct.git"},"bugs":{"url":"https://github.com/helmetjs/expect-ct/issues","email":"me@evanhahn.com"},"engines":{"node":">=4.0.0"},"main":"./dist/index.js","typings":"./dist/index.d.ts","scripts":{"pretest":"npm run lint","prepublishOnly":"npm run build","lint":"eslint --fix '**/*.ts'","test":"jest --config test/jest-config.json","clean":"rm -rf dist","build":"npm run clean && tsc"},"devDependencies":{"@types/connect":"^3.4.32","@types/jest":"^24.0.12","@types/supertest":"^2.0.7","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","connect":"^3.6.6","eslint":"^5.16.0","eslint-config-helmet":"^0.2.0","jest":"^24.7.1","supertest":"^4.0.2","ts-jest":"^24.0.2","typescript":"^3.4.5"},"dependencies":{},"gitHead":"21aa018565f96f4a8361c34e374ed4b817d0efcc","_id":"expect-ct@0.2.0","_nodeVersion":"11.14.0","_npmVersion":"6.9.0","dist":{"shasum":"3a54741b6ed34cc7a93305c605f63cd268a54a62","size":2507,"noattachment":false,"key":"/expect-ct/-/expect-ct-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expect-ct/download/expect-ct-0.2.0.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expect-ct_0.2.0_1557015574450_0.4218469458033809"},"_hasShrinkwrap":false,"publish_time":1557015574598,"_cnpm_publish_time":1557015574598},"0.1.1":{"name":"expect-ct","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Middleware to set the Expect-CT header","version":"0.1.1","license":"MIT","keywords":["helmet","security","express","connect","expect-ct"],"repository":{"type":"git","url":"git://github.com/helmetjs/expect-ct.git"},"bugs":{"url":"https://github.com/helmetjs/expect-ct/issues"},"scripts":{"pretest":"standard","test":"mocha"},"devDependencies":{"mocha":"^4.1.0","standard":"^11.0.1"},"standard":{"globals":["describe","beforeEach","it"]},"gitHead":"20a9ca872ada687449635569cb94433a66ecfee8","homepage":"https://github.com/helmetjs/expect-ct#readme","_id":"expect-ct@0.1.1","_npmVersion":"5.10.0","_nodeVersion":"10.1.0","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"dist":{"shasum":"de84476a2dbcb85000d5903737e9bc8a5ba7b897","size":1940,"noattachment":false,"key":"/expect-ct/-/expect-ct-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/expect-ct/download/expect-ct-0.1.1.tgz"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/expect-ct_0.1.1_1526505312220_0.5208453988364581"},"_hasShrinkwrap":false,"publish_time":1526505312290,"_cnpm_publish_time":1526505312290},"0.1.0":{"name":"expect-ct","author":{"name":"Evan Hahn","email":"me@evanhahn.com","url":"https://evanhahn.com"},"description":"Middleware to set the Expect-CT header","version":"0.1.0","license":"MIT","keywords":["helmet","security","express","connect","expect-ct"],"repository":{"type":"git","url":"git://github.com/helmetjs/expect-ct.git"},"bugs":{"url":"https://github.com/helmetjs/expect-ct/issues"},"scripts":{"pretest":"standard","test":"mocha"},"devDependencies":{"mocha":"^3.2.0","standard":"^9.0.2"},"standard":{"globals":["describe","beforeEach","it"]},"gitHead":"ce75d9b5502a4e2daa7dd89fa5373e8e0f553308","homepage":"https://github.com/helmetjs/expect-ct#readme","_id":"expect-ct@0.1.0","_shasum":"52735678de18530890d8d7b95f0ac63640958094","_from":".","_npmVersion":"4.5.0","_nodeVersion":"7.9.0","_npmUser":{"name":"evanhahn","email":"me@evanhahn.com"},"maintainers":[{"name":"evanhahn","email":"me@evanhahn.com"}],"dist":{"shasum":"52735678de18530890d8d7b95f0ac63640958094","size":2734,"noattachment":false,"key":"/expect-ct/-/expect-ct-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/expect-ct/download/expect-ct-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/expect-ct-0.1.0.tgz_1493936881786_0.5606191393453628"},"directories":{},"publish_time":1493936884735,"_cnpm_publish_time":1493936884735,"_hasShrinkwrap":false}},"readme":"# Expect-CT middleware\n\nThe `Expect-CT` HTTP header tells browsers to expect Certificate Transparency. For more, see [this blog post](https://scotthelme.co.uk/a-new-security-header-expect-ct/) and the [article on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT).\n\nUsage:\n\n```javascript\nconst expectCt = require(\"expect-ct\");\n\n// Sets Expect-CT: max-age=123\napp.use(expectCt({ maxAge: 123 }));\n\n// Sets Expect-CT: enforce, max-age=123\napp.use(\n  expectCt({\n    enforce: true,\n    maxAge: 123,\n  })\n);\n\n// Sets Expect-CT: enforce, max-age=30, report-uri=\"https://example.com/report\"\napp.use(\n  expectCt({\n    enforce: true,\n    maxAge: 30,\n    reportUri: \"https://example.com/report\",\n  })\n);\n```\n","_attachments":{},"homepage":"https://helmetjs.github.io/","bugs":{"url":"https://github.com/helmetjs/helmet/issues","email":"me@evanhahn.com"},"license":"MIT"}