open-index/open-npm huggingface dataset:
npm package: @nest-middleware-collection/compression
Description: NestJS Middleware for Compression
Latest version: 9.0.0

# Nest Middlewares - Compression

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [compression](http://www.npmjs.com/package/compression).

## Installation

`@nest-middleware-collection/compression` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/compression
```

## Usage

```ts
import { CompressionMiddleware } from '@nest-middleware-collection/compression';

@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(CompressionMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/connect-timeout
Description: NestJS Middleware for Connect Timeout
Latest version: 9.0.0

# Nest Middlewares - Connect Timeout

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [connect-timeout](http://www.npmjs.com/package/connect-timeout).

## Installation

`@nest-middleware-collection/connect-timeout` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/connect-timeout
```

## Usage

```ts
import { ConnectTimeoutMiddleware } from '@nest-middleware-collection/connect-timeout';

@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(ConnectTimeoutMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/cookie-parser
Description: NestJS Middleware for Cookie Parser
Latest version: 9.0.0

# Nest Middlewares - Cookie Parser

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [cookie-parser](http://www.npmjs.com/package/cookie-parser).

## Installation

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

```sh
npm install --save @nest-middleware-collection/cookie-parser
```

## Usage

```ts
import { CookieParserMiddleware } from '@nest-middleware-collection/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 */ );
    }
}
```
npm package: @nest-middleware-collection/cookie-session
Description: NestJS Middleware for Cookie Session
Latest version: 9.0.0

# Nest Middlewares - Cookie Session

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [cookie-session](http://www.npmjs.com/package/cookie-session).

## Installation

`@nest-middleware-collection/cookie-session` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/cookie-session
```

## Usage

```ts
import { CookieSessionMiddleware } from '@nest-middleware-collection/cookie-session';

@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(CookieSessionMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/cors
Description: NestJS Middleware for CORS
Latest version: 9.0.0

# Nest Middlewares - CORS

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [cors](http://www.npmjs.com/package/cors).

## Installation

`@nest-middleware-collection/cors` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/cors
```

## Usage

```ts
import { CorsMiddleware } from '@nest-middleware-collection/cors';

@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(CorsMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/csurf
Description: NestJS Middleware for CSURF
Latest version: 9.0.0

# Nest Middlewares - CSURF

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [csurf](http://www.npmjs.com/package/csurf).

## Installation

`@nest-middleware-collection/csurf` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/csurf
```

## Usage

```ts
import { CsurfMiddleware } from '@nest-middleware-collection/csurf';

@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(CsurfMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/errorhandler
Description: NestJS Middleware for Error Handler
Latest version: 9.0.0

# Nest Middlewares - Error Handler

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [errorhandler](http://www.npmjs.com/package/errorhandler).

## Installation

`@nest-middleware-collection/errorhandler` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/errorhandler
```

## Usage

```ts
import { ErrorHandlerMiddleware } from '@nest-middleware-collection/errorhandler';

@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(ErrorHandlerMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/express-bearer-token
Description: NestJS Middleware for Express Bearer Token
Latest version: 9.0.0

# Nest Middlewares - Bearer Token

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [express-bearer-token](http://www.npmjs.com/package/express-bearer-token).

## Installation

`@nest-middleware-collection/express-bearer-token` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/express-bearer-token
```

## Usage

```ts
import { ExpressBearerTokenMiddleware } from '@nest-middleware-collection/express-bearer-token';

@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(ExpressBearerTokenMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/express-request-id
Description: NestJS Middleware for Express Request ID
Latest version: 9.0.0

# Nest Middlewares - Express Request Id

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [express-request-id](http://www.npmjs.com/package/express-request-id).

## Installation

`@nest-middleware-collection/express-request-id` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/express-request-id
```

## Usage

```ts
import { ExpressRequestIdMiddleware } from '@nest-middleware-collection/express-request-id';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        consumer.apply(ExpressRequestIdMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/express-session
Description: NestJS Middleware for Express Session
Latest version: 9.0.0

# Nest Middlewares - Express Session

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [express-session](http://www.npmjs.com/package/express-session).

## Installation

`@nest-middleware-collection/express-session` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/express-session
```

## Usage

```ts
import { ExpressSessionMiddleware } from '@nest-middleware-collection/express-session';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        ExpressSessionMiddleware.configure( /* options as per express-session docs */ )
        consumer.apply(ExpressSessionMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/helmet
Description: NestJS Middleware for Helmet
Latest version: 9.0.0

# Nest Middlewares - Helmet

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [helmet](http://www.npmjs.com/package/helmet).

## Installation

`@nest-middleware-collection/helmet` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/helmet
```

## Usage

```ts
import { HelmetMiddleware } from '@nest-middleware-collection/helmet';

@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(HelmetMiddleware).forRoutes( /* your routes */ );
    }
}
```

The following classes are also available for more specialized imports:

- HelmetContentSecurityPolicyMiddleware
- HelmetCrossOriginEmbedderPolicyMiddleware
- HelmetCrossOriginOpenerPolicyMiddleware
- HelmetCrossOriginResourcePolicyMiddleware
- HelmetDnsPrefetchControlMiddleware
- HelmetExpectCtMiddleware
- HelmetFrameguardMiddleware
- HelmetHidePoweredByMiddleware
- HelmetHstsMiddleware
- HelmetIeNoOpenMiddleware
- HelmetNoSniffMiddleware
- HelmetOriginAgentClusterMiddleware
- HelmetPermittedCrossDomainPoliciesMiddleware
- HelmetReferrerPolicyMiddleware
- HelmetXssFilterMiddleware
npm package: @nest-middleware-collection/method-override
Description: NestJS Middleware for Method Override
Latest version: 9.0.0

# Nest Middlewares - Method Override

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [method-override](http://www.npmjs.com/package/method-override).

## Installation

`@nest-middleware-collection/method-override` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/method-override
```

## Usage

```ts
import { MethodOverrideMiddleware } from '@nest-middleware-collection/method-override';

@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(MethodOverrideMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/morgan
Description: NestJS Middleware for Morgan
Latest version: 9.0.0

# Nest Middlewares - Morgan

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [morgan](http://www.npmjs.com/package/morgan).

## Installation

`@nest-middleware-collection/morgan` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/morgan
```

## Usage

```ts
import { MorganMiddleware } from '@nest-middleware-collection/morgan';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        MorganMiddleware.configure( /* options as per morgan docs */ )
        consumer.apply(MorganMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/passport
Description: NestJS Middleware for Passport
Latest version: 9.0.0

# Nest Middlewares - Passport

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [passport](http://www.npmjs.com/package/passport).

## Installation

`@nest-middleware-collection/passport` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/passport
```

## Usage

```ts
import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
import { PassportInitializeMiddleware, PassportSessionMiddleware } from '@nest-middleware-collection/passport';
import { AppController } from './app.controller';

@Module(...)
export class AppModule implements NestModule {
    configure(consumer: MiddlewaresConsumer) {
        consumer
        	.apply(PassportInitializeMiddleware)
        	.forRoutes(AppController)
        	.apply(PassportSessionMiddleware)
        	.forRoutes(AppController)
    }
}
```
npm package: @nest-middleware-collection/response-time
Description: NestJS Middleware for Response Time
Latest version: 9.0.0

# Nest Middlewares - Response Time

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [response-time](http://www.npmjs.com/package/response-time).

## Installation

`@nest-middleware-collection/response-time` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/response-time
```

## Usage

```ts
import { ResponseTimeMiddleware } from '@nest-middleware-collection/response-time';

@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(ResponseTimeMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/serve-favicon
Description: NestJS Middleware for Serve Favicon
Latest version: 9.0.0

# Nest Middlewares - Serve Favicon

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [serve-favicon](http://www.npmjs.com/package/serve-favicon).

## Installation

`@nest-middleware-collection/serve-favicon` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/serve-favicon
```

## Usage

```ts
import { ServeFaviconMiddleware } from '@nest-middleware-collection/serve-favicon';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        ServeFaviconMiddleware.configure( /* options as per helmet docs */ )
        consumer.apply(ServeFaviconMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/serve-index
Description: NestJS Middleware for Serve Index
Latest version: 9.0.0

# Nest Middlewares - Serve Index

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [serve-index](http://www.npmjs.com/package/serve-index).

## Installation

`@nest-middleware-collection/serve-index` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/serve-index
```

## Usage

```ts
import { ServeIndexMiddleware } from '@nest-middleware-collection/serve-index';

@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(ServeIndexMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/serve-static
Description: NestJS Middleware for Serve Static
Latest version: 9.0.0

# Nest Middlewares - Serve Static

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [serve-static](http://www.npmjs.com/package/serve-static).

## Installation

`@nest-middleware-collection/serve-static` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/serve-static
```

## Usage

```ts
import { ServeStaticMiddleware } from '@nest-middleware-collection/serve-static';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        ServeStaticMiddleware.configure( /* options as per helmet docs */ )
        consumer.apply(ServeStaticMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middleware-collection/vhost
Description: NestJS Middleware for Virtual Host
Latest version: 9.0.0

# Nest Middlewares - VHost

[![Coverage Status](https://coveralls.io/repos/github/asheliahut/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/asheliahut/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [vhost](http://www.npmjs.com/package/vhost).

## Installation

`@nest-middleware-collection/vhost` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middleware-collection/vhost
```

## Usage

```ts
import { VhostMiddleware } from '@nest-middleware-collection/vhost';

@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(VhostMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/compression
Description: NestJS Middleware for Compression
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Compression

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [compression](http://www.npmjs.com/package/compression).

## Installation

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

```sh
npm install --save @nest-middlewares/compression
```

## Usage

```ts
import { CompressionMiddleware } from '@nest-middlewares/compression';

@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(CompressionMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/connect-rid
Description: NestJS Middleware for Connect RID
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Connect RID

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [connect-rid](http://www.npmjs.com/package/connect-rid).

## Installation

`@nest-middlewares/connect-rid` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/connect-rid
```

## Usage

```ts
import { ConnectRidMiddleware } from '@nest-middlewares/connect-rid';

@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(ConnectRidMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/connect-timeout
Description: NestJS Middleware for Connect Timeout
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Connect Timeout

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [connect-timeout](http://www.npmjs.com/package/connect-timeout).

## Installation

`@nest-middlewares/connect-timeout` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/connect-timeout
```

## Usage

```ts
import { ConnectTimeoutMiddleware } from '@nest-middlewares/connect-timeout';

@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(ConnectTimeoutMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/cookie-parser
Description: NestJS Middleware for Cookie Parser
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Cookie Parser

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [cookie-parser](http://www.npmjs.com/package/cookie-parser).

## Installation

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

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

## Usage

```ts
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 */ );
    }
}
```
npm package: @nest-middlewares/cookie-session
Description: NestJS Middleware for Cookie Session
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Cookie Session

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [cookie-session](http://www.npmjs.com/package/cookie-session).

## Installation

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

```sh
npm install --save @nest-middlewares/cookie-session
```

## Usage

```ts
import { CookieSessionMiddleware } from '@nest-middlewares/cookie-session';

@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(CookieSessionMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/cors
Description: NestJS Middleware for CORS
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - CORS

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [cors](http://www.npmjs.com/package/cors).

## Installation

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

```sh
npm install --save @nest-middlewares/cors
```

## Usage

```ts
import { CorsMiddleware } from '@nest-middlewares/cors';

@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(CorsMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/csurf
Description: NestJS Middleware for CSURF
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - CSURF

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [csurf](http://www.npmjs.com/package/csurf).

## Installation

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

```sh
npm install --save @nest-middlewares/csurf
```

## Usage

```ts
import { CsurfMiddleware } from '@nest-middlewares/csurf';

@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(CsurfMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/errorhandler
Description: NestJS Middleware for Error Handler
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Error Handler

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [errorhandler](http://www.npmjs.com/package/errorhandler).

## Installation

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

```sh
npm install --save @nest-middlewares/errorhandler
```

## Usage

```ts
import { ErrorHandlerMiddleware } from '@nest-middlewares/errorhandler';

@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(ErrorHandlerMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/express-bearer-token
Description: NestJS Middleware for Express Bearer Token
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Bearer Token

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [express-bearer-token](http://www.npmjs.com/package/express-bearer-token).

## Installation

`@nest-middlewares/express-bearer-token` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/express-bearer-token
```

## Usage

```ts
import { ExpressBearerTokenMiddleware } from '@nest-middlewares/express-bearer-token';

@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(ExpressBearerTokenMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/express-session
Description: NestJS Middleware for Express Session
Author: Wilson Hobbs
Latest version: 10.0.1

# Nest Middlewares - Express Session

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [express-session](http://www.npmjs.com/package/express-session).

## Installation

`@nest-middlewares/express-session` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/express-session
```

## Usage

```ts
import { ExpressSessionMiddleware } from '@nest-middlewares/express-session';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        ExpressSessionMiddleware.configure( /* options as per express-session docs */ )
        consumer.apply(ExpressSessionMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/helmet
Description: NestJS Middleware for Helmet
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Helmet

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [helmet](http://www.npmjs.com/package/helmet).

## Installation

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

```sh
npm install --save @nest-middlewares/helmet
```

## Usage

```ts
import { HelmetMiddleware } from '@nest-middlewares/helmet';

@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(HelmetMiddleware).forRoutes( /* your routes */ );
    }
}
```

The following classes are also available for more specialized imports:

- HelmetContentSecurityPolicyMiddleware
- HelmetDnsPrefetchControlMiddleware
- HelmetExpectCtMiddleware
- HelmetFrameguardMiddleware
- HelmetHidePoweredByMiddleware
- HelmetHpkpMiddleware
- HelmetHstsMiddleware
- HelmetIeNoOpenMiddleware
- HelmetNoCacheMiddleware
- HelmetNoSniffMiddleware
- HelmetReferrerPolicyMiddleware
- HelmetXssFilterMiddleware
npm package: @nest-middlewares/method-override
Description: NestJS Middleware for Method Override
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Method Override

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [method-override](http://www.npmjs.com/package/method-override).

## Installation

`@nest-middlewares/method-override` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/method-override
```

## Usage

```ts
import { MethodOverrideMiddleware } from '@nest-middlewares/method-override';

@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(MethodOverrideMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/morgan
Description: NestJS Middleware for Morgan
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Morgan

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [morgan](http://www.npmjs.com/package/morgan).

## Installation

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

```sh
npm install --save @nest-middlewares/morgan
```

## Usage

```ts
import { MorganMiddleware } from '@nest-middlewares/morgan';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        MorganMiddleware.configure( /* options as per morgan docs */ )
        consumer.apply(MorganMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/passport
Description: NestJS Middleware for Passport
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Passport

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [passport](http://www.npmjs.com/package/passport).

## Installation

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

```sh
npm install --save @nest-middlewares/passport
```

## Usage

```ts
import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
import { PassportInitializeMiddleware, PassportSessionMiddleware } from '@nest-middlewares/passport';
import { AppController } from './app.controller';

@Module(...)
export class AppModule implements NestModule {
    configure(consumer: MiddlewaresConsumer) {
        consumer
        	.apply(PassportInitializeMiddleware)
        	.forRoutes(AppController)
        	.apply(PassportSessionMiddleware)
        	.forRoutes(AppController)
    }
}
```
npm package: @nest-middlewares/response-time
Description: NestJS Middleware for Response Time
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Response Time

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [response-time](http://www.npmjs.com/package/response-time).

## Installation

`@nest-middlewares/response-time` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/response-time
```

## Usage

```ts
import { ResponseTimeMiddleware } from '@nest-middlewares/response-time';

@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(ResponseTimeMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/serve-favicon
Description: NestJS Middleware for Serve Favicon
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Serve Favicon

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [serve-favicon](http://www.npmjs.com/package/serve-favicon).

## Installation

`@nest-middlewares/serve-favicon` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/serve-favicon
```

## Usage

```ts
import { ServeFaviconMiddleware } from '@nest-middlewares/serve-favicon';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        ServeFaviconMiddleware.configure( /* options as per helmet docs */ )
        consumer.apply(ServeFaviconMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/serve-index
Description: NestJS Middleware for Serve Index
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Serve Index

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [serve-index](http://www.npmjs.com/package/serve-index).

## Installation

`@nest-middlewares/serve-index` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/serve-index
```

## Usage

```ts
import { ServeIndexMiddleware } from '@nest-middlewares/serve-index';

@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(ServeIndexMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/serve-static
Description: NestJS Middleware for Serve Static
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - Serve Static

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [serve-static](http://www.npmjs.com/package/serve-static).

## Installation

`@nest-middlewares/serve-static` is available from NPM. You can install it with this command:

```sh
npm install --save @nest-middlewares/serve-static
```

## Usage

```ts
import { ServeStaticMiddleware } from '@nest-middlewares/serve-static';

@Module(...)
export class MyModule {
    configure(consumer: MiddlewaresConsumer) {
        // IMPORTANT! Call Middleware.configure BEFORE using it for routes
        ServeStaticMiddleware.configure( /* options as per helmet docs */ )
        consumer.apply(ServeStaticMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-middlewares/vhost
Description: NestJS Middleware for Virtual Host
Author: Wilson Hobbs
Latest version: 10.0.0

# Nest Middlewares - VHost

[![Coverage Status](https://coveralls.io/repos/github/wbhob/nest-middlewares/badge.svg?branch=master)](https://coveralls.io/github/wbhob/nest-middlewares?branch=master)

This is the Nest Middleware wrapper around [vhost](http://www.npmjs.com/package/vhost).

## Installation

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

```sh
npm install --save @nest-middlewares/vhost
```

## Usage

```ts
import { VhostMiddleware } from '@nest-middlewares/vhost';

@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(VhostMiddleware).forRoutes( /* your routes */ );
    }
}
```
npm package: @nest-mods/auth
Description: simple role based auth for nestjs using passport
Author: Diluka
Latest version: 11.0.0

# auth
[![npm version](https://badge.fury.io/js/%40nest-mods%2Fauth.svg)](https://badge.fury.io/js/%40nest-mods%2Fauth)

Simple role based auth for nestjs

install via npm `npm i @nest-mods/auth`
npm package: @nest-mods/limiter
Description: limiter for nestjs (express)
Author: Diluka
Latest version: 1.0.0

# limiter

Easy to use Limiter for nest.js (express)

## Install

`npm i @nest-mods/limiter`

## Usage

```ts
  @UseRateLimit()
  @Get('test1')
  async test1() {
    return 'ok';
  }

  @UseSlowDown()
  @Query(() => String)
  async test3() {
    return 'ok';
  }
```
npm package: @nest-mods/log
Description: [![npm version](https://badge.fury.io/js/%40nest-mods%2Flog.svg)](https://badge.fury.io/js/%40nest-mods%2Flog)
Author: Diluka
Latest version: 10.0.0

# log
[![npm version](https://badge.fury.io/js/%40nest-mods%2Flog.svg)](https://badge.fury.io/js/%40nest-mods%2Flog)

Easy log for nestjs

install via npm `npm i @nest-mods/log`

## Usages
- use `@Log` to inject `Logger`
- use `@LogInvoke` to aop log method invoke
npm package: @nest-mods/log4js-logger
Description: Nestjs Logger log4js implementation
Author: Diluka
Latest version: 0.0.2

# Log4jsLogger

NestJS Logger log4js implementation

## simple usage
```ts
setupLog4js(); // setup log4js, left no arg to using default configs

Logger.overrideLogger(new Log4jsLogger()); // using Log4jsLogger implementation
```
npm package: @nest-mods/youzan
Description: Youzan API client wrapped with bull for nest.js
Author: Diluka
Latest version: 3.0.0

# youzan
[![npm version](https://badge.fury.io/js/%40nest-mods%2Fyouzan.svg)](https://badge.fury.io/js/%40nest-mods%2Fyouzan)

Youzan API client wrapped with bull for nest.js

install via npm `npm i @nest-mods/youzan @nest-mods/log ioredis lodash bull`

`2.x` target at nestjs `6.x`
```ts
    @Module({
      imports: [
        YouzanModule.forRootAsync({
          useFactory: () => {
            return {
              apiConfigs: {
                client_id: process.env.TEST_YOUZAN_CLIENT_ID,
                client_secret: process.env.TEST_YOUZAN_CLIENT_SECRET,
                kdt_id: process.env.TEST_YOUZAN_KDT_ID,
                grant_type: 'silent',
              },
              redis: {},
            };
          },
        }),
      ],
    })
    export class DemoApp {}
```
npm package: @nest-module/next
Description: Nest module for Next.js
Author: EGOIST
Latest version: 1.0.0

# Nest module for Next.js

Use [Next.js](https://nextjs.org/) with a [Nest.js](https://nestjs.com/) server.

## Why?

Allow you to manage both your frontend and backend in a single repository. And you maintain one domain `example.com` instead of two: `example.com` and `api.example.com`.

## Install

```bash
yarn add @nest-module/next next react react-dom

# Following typings are also needed
yarn add @types/react @types/node --dev
```

## Usage

In your `src/app.module.ts`:

```ts
import { join } from 'path'
import { NextModule } from '@nest-module/next'

@Module({
  imports: [
    NextModule.register({
      dev: process.env.NODE_ENV !== 'production',
      // It's recommended to populate your Next.js in a sub directory 
      // like ./next folder so that it could use its own tsconfig.json
      dir: join(__dirname, '../next')
    })
  ]
})
export class AppModule {}
```

Then you can use file-system based routing, try populating a page at `next/index.tsx`:

```tsx
export default () => <div>Hello Next!</div>
```

And configure your root `tsconfig.build.json` to include `src` folder only:

```json
{
  "include": ["src"]
}
```

Next.js will automatically create another TS config file at `next/tsconfig.json`, we want the root TS config to be applied to your Nest server only.

Now start your Nest server and navigate to the homepage and you will see `Hello Next!`.

### Manually render a page

Besides automatic routing via `pages` folder, you can also use `req.nextRender` inside a Nest route handler to render a Next.js page:

```js
import { Res, Controller, Get } from '@nestjs/common'
import { Response } from 'express'

@Controller()
export class AppController {
  @Get('/some-page')
  anotherPage(@Res() res: Response) {
    res.nextRender('/another-page', {
      // optional route query
      message: 'another page'
    })
  }
}
```

This route handler will render `pages/another-page.tsx`:

```tsx
const AnotherPage = ({ query }) => {
  return <div>{query.message}</div>
}

// `getInitialProps` is required if you want to access `query` in your page component
AnotherPage.getInitialProps = ctx => {
  return { query: ctx.query }
}

export default AnotherPage
```

## License

MIT.
npm package: @nest-modules/mailer
Description: NestJS - a mailer module (@mailer)
Author: Nest Modules TM
Latest version: 1.3.22
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<p align="center">
  <a href="http://nestjs.com/" target="blank">
    <img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" />
  </a>
</p>

<p align="center">
  A mailer module for Nest framework (node.js) using <a href="https://nodemailer.com/">Nodemailer</a> library
</p>

<p align="center">
  <a href="https://www.npmjs.com/org/nestjs-modules"><img src="https://img.shields.io/npm/v/@nestjs-modules/mailer.svg" alt="NPM Version" /></a>
  <a href="https://www.npmjs.com/org/nestjs-modules"><img src="https://img.shields.io/npm/l/@nestjs-modules/mailer.svg" alt="Package License" /></a>
  <a href="https://www.npmjs.com/org/nestjs-modules"><img src="https://img.shields.io/npm/dm/@nestjs-modules/mailer.svg" alt="NPM Downloads" /></a>
</p>

# Please use [@nestjs-modules/mailer](https://www.npmjs.com/package/@nestjs-modules/mailer)

### Installation

```sh
npm install --save @nestjs-modules/mailer nodemailer
#or
yarn add @nestjs-modules/mailer nodemailer
```

**Hint:** handlebars and pug is an optional dependency, if you want to use the template, you must install it.

#### with npm
```sh
npm install --save handlebars
#or
npm install --save pug
```

#### with yarn
```sh
yarn add handlebars
#or
yarn add pug
```

### Documentation

you can find all the documentation [here](https://nest-modules.github.io/mailer/) for the email module

### Starter kit

- [Sending email-template with outlook](https://github.com/yanarp/nestjs-mailer) - Starter kit, nestjs mailer implementation on outlook smtp with email-template

### Contributing

* [Cristiam Diaz](https://github.com/cdiaz)
* [Eduardo Leal](https://github.com/eduardoleal)
* [Juan Echeverry](https://github.com/juandav)
* [Pat McGowan](https://github.com/p-mcgowan)
* [Paweł Partyka](https://github.com/partyka95)

### License

MIT