Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@icapps/nestjs-prisma
Advanced tools
@icapps/nestjs-prisma
Everything you need to get started with Prisma in NestJS
npx @icapps/nestjs-prisma
@icapps/nestjs-prisma
and Prisma Clientnpm install @icapps/nestjs-prisma @prisma/client
npm install prisma --save-dev
npx prisma init
// app.module.ts
import { Module } from '@nestjs/common';
import { PrismaModule } from '@icapps/nestjs-prisma';
@Module({
imports: [PrismaModule],
})
export class AppModule {}
// main.ts
import { PrismaService } from '@icapps/nestjs-prisma';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const prismaService = await app.get(PrismaService);
await prismaService.enableShutdownHooks(app);
await app.listen(3000);
}
bootstrap();
// todo.service.ts
import { PrismaService } from '@icapps/nestjs-prisma';
import { Injectable } from '@nestjs/common';
@Injectable()
export class TodoService {
constructor(private prisma: PrismaService) {}
findAll() {
return this.prisma.todo.findMany();
}
}
FAQs
Everything you need to get started with Prisma in NestJS
The npm package @icapps/nestjs-prisma receives a total of 0 weekly downloads. As such, @icapps/nestjs-prisma popularity was classified as not popular.
We found that @icapps/nestjs-prisma demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.