10.0.0 • Published 1 year ago

@nest-middlewares/serve-favicon v10.0.0

Weekly downloads
144
License
MIT
Repository
github
Last release
1 year ago

Nest Middlewares - Serve Favicon

Coverage Status

This is the Nest Middleware wrapper around serve-favicon.

Installation

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

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

Usage

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

1 year ago

7.0.0

2 years ago

7.0.1

2 years ago

6.0.1

5 years ago

6.0.0

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago