@zcorky/koa-helmet
v0.0.1
Published
simple helmet for koa
Downloads
8
Readme
koa-helmet
helmet for Koa, wrapper with helmet.
Install
$ npm install @zcorky/koa-helmet
Usage
// See more in test
import helmet from '@zcorky/koa-helmet';
import * as Koa from 'koa';
const app = new Koa();
app.use(helmet());
app.use(ctx => {
ctx.body = 'Hello, World!';
});
app.listen(8000, '0.0.0.0', () => {
console.log('koa server start at port: 8000');
});