0.0.3 • Published 5 years ago

@koex/helmet v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

helmet

NPM version Coverage Status Dependencies Build Status license issues

helmet for koa extend, wrapper with helmet.

Install

$ npm install @koex/helmet

Usage

// See more in test
import helmet from '@koex/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');
});

Related