hinos-helmet
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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')));

/hinos-helmet/

    Package Sidebar

    Install

    npm i hinos-helmet

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • doanthuanthanh88