{"library":"create-nestjs-middleware-module","type":"library","category":null,"description":"create-nestjs-middleware-module is a lightweight utility library designed to simplify the integration and configuration of Express or Fastify middleware into NestJS applications. It abstracts away the boilerplate of implementing `NestModule` and `MiddlewareConsumer` by providing a `createModule` function, allowing developers to define middleware factories that can accept options. The library currently supports NestJS versions 8 through 11 and requires Node.js >=18.0.0. It aims to provide an idiomatic NestJS way to encapsulate middleware logic within a modular structure, enabling configuration via `forRoot` or `forRootAsync` methods, and offering fine-grained control over routing, similar to NestJS's built-in `MiddlewareConfigProxy`. Its current stable version is 0.4.0, with releases occurring as needed to maintain compatibility with new NestJS versions.","language":"javascript","status":"active","version":"0.4.0","tags":["javascript","nest","nestjs","nest.js","middleware","config","configure","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install create-nestjs-middleware-module","imports":["import { createModule } from 'create-nestjs-middleware-module';","import { createModule, FacadeModuleStaticOptional } from 'create-nestjs-middleware-module';","import { SyncOptions } from 'create-nestjs-middleware-module';","import { AsyncOptions } from 'create-nestjs-middleware-module';"]},{"cmd":"yarn add create-nestjs-middleware-module","imports":[]},{"cmd":"pnpm add create-nestjs-middleware-module","imports":[]}],"homepage":null,"github":"https://github.com/iamolegga/create-nestjs-middleware-module","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/create-nestjs-middleware-module","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/create-nestjs-middleware-module/compatibility"}}