1.0.0 • Published 7 years ago

hinos-helmet v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

hinos-helmet

hinos-helmet is a wrapper for helmet to work with hinos. It provides important security headers to make your app more secure by default.

Installation

npm i hinos-helmet -S

Examples

Typescript

Setup in src/index.ts

import helmet from 'hinos-helmet'
import { Server } from 'hinos';
import { route } from 'hinos-route';
import { serve } from 'hinos-serve';
import { cors } from 'hinos-cors';

Server.use(helmet())
Server.use(serve({
    '/upload': path.join(__dirname, '..', 'assets', 'upload')
}));
Server.use(cors());
Server.use(route(path.join(__dirname, 'controller')));
1.0.0

7 years ago