Nimble Porridge Muncher
Publish your own packages to the world's most popular software ecosystem with npm Pro.Get started »

expect-ct

0.3.0 • Public • Published

Expect-CT

Build Status

The Expect-CT HTTP header tells browsers to expect Certificate Transparency. For more, see this blog post and the article on MDN.

Usage:

const expectCt = require('expect-ct')
 
// Sets Expect-CT: max-age=123
app.use(expectCt({ maxAge: 123 }))
 
// Sets Expect-CT: enforce, max-age=123
app.use(expectCt({
  enforce: true,
  maxAge: 123
}))
 
// Sets Expect-CT: enforce, max-age=30, report-uri="https://example.com/report"
app.use(expectCt({
  enforce: true,
  maxAge: 30,
  reportUri: 'https://example.com/report'
}))

Install

npm i expect-ct

DownloadsWeekly Downloads

639,247

Version

0.3.0

License

MIT

Unpacked Size

5.31 kB

Total Files

6

Last publish

Collaborators

  • avatar