JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2322
  • Score
    100M100P100Q119773F
  • License MIT

NestJS Middleware for Cookie Parser

Package Exports

  • @nest-middlewares/cookie-parser
  • @nest-middlewares/cookie-parser/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nest-middlewares/cookie-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Nest Middlewares - Cookie Parser

Coverage Status

This is the Nest Middleware wrapper around cookie-parser.

Installation

@nest-middlewares/cookie-parser is available from NPM. You can install it with this command:

npm install --save @nest-middlewares/cookie-parser

Usage

import { CookieParserMiddleware } from '@nest-middlewares/cookie-parser';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        HelmetMiddleware.configure( /* options as per helmet docs */ )
        consumer.apply(CookieParserMiddleware).forRoutes( /* your routes */ );
    }
}