koa-helmet is a wrapper for helmet to work with koa.
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.
npm install koa-helmet --save
Usage is the same as helmet.
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);