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
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-parserUsage
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 */ );
}
}