8000 GitHub - davdiv/koa-helmet: Collection of middleware to implement various security headers for koa
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

davdiv/koa-helmet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-helmet

Version Dependency Status Build Status Downloads

koa-helmet is a wrapper for helmet to work with koa.

NOTE

This branch is for koa v2, which uses Promises instead of Generator functions. For koa 0.x and 1.x support, see the koa-1 branch.

Installation

npm install koa-helmet --save

Usage

Usage is the same as helmet.

Example

var Koa = require('koa');
var helmet = require('koa-helmet');
var app = new Koa();

app.use(helmet());

app.use((ctx) => {
  ctx.body = 'Hello World';
});

app.listen(4000);

About

Collection of middleware to implement various security headers for koa

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
0