nestjs-ultimate-express
v1.0.0
Published
NestJS platform adapter for ultimate-express - drop-in replacement for @nestjs/platform-express
Maintainers
Readme
nestjs-ultimate-express
A drop-in replacement for @nestjs/platform-express that uses ultimate-express instead of standard Express.js for enhanced performance.
Installation
npm install nestjs-ultimate-express
# or
yarn add nestjs-ultimate-expressUsage
Simply replace your import from @nestjs/platform-express to nestjs-ultimate-express:
Before
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
await app.listen(3000);
}
bootstrap();After
import { NestFactory } from '@nestjs/core';
import { NestExpressApplication } from 'nestjs-ultimate-express';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
await app.listen(3000);
}
bootstrap();That's it! Your application now runs on ultimate-express with all the performance benefits.
What's Different?
- 🚀 Enhanced Performance: Built on ultimate-express for better performance
- 🔄 Drop-in Replacement: No code changes needed beyond the import
- 🧪 Fully Compatible: Works with all existing NestJS features and middlewares
- 📦 Lightweight: Only includes the platform adapter, uses your existing NestJS installation
Requirements
@nestjs/core^10.0.0 || ^11.0.0@nestjs/common^10.0.0 || ^11.0.0
License
MIT
Credits
Based on NestJS platform-express by the NestJS team. Ultimate Express integration by gulzerr.
