@nest-middlewares/serve-static
Advanced tools
Weekly downloads
Readme
This is the Nest Middleware wrapper around serve-static.
@nest-middlewares/serve-static
is available from NPM. You can install it with this command:
npm install --save @nest-middlewares/serve-static
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 */ );
}
}
FAQs
NestJS Middleware for Serve Static
The npm package @nest-middlewares/serve-static receives a total of 681 weekly downloads. As such, @nest-middlewares/serve-static popularity was classified as not popular.
We found that @nest-middlewares/serve-static demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.