Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nestjs/core

Package Overview
Dependencies
Maintainers
1
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/core

Nest - modern, fast, powerful node.js web framework (@core)

  • 4.5.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5M
decreased by-9.22%
Maintainers
1
Weekly downloads
 
Created

What is @nestjs/core?

The @nestjs/core package is the core foundation of the NestJS framework, a framework for building efficient, reliable and scalable server-side applications. It provides out-of-the-box application architecture which allows developers and teams to create highly testable, scalable, loosely coupled, and easily maintainable applications.

What are @nestjs/core's main functionalities?

Module System

NestJS uses a module system to organize code into separate modules. This code sample demonstrates how to define a basic module in NestJS.

import { Module } from '@nestjs/common';

@Module({
  imports: [],
  controllers: [],
  providers: [],
})
export class AppModule {}

Dependency Injection

NestJS provides a powerful dependency injection system, allowing classes to define their dependencies through the constructor. This code sample shows how to inject a service into another.

import { Injectable } from '@nestjs/common';

@Injectable()
export class MyService {
  constructor(private otherService: OtherService) {}
}

Controllers and Routing

NestJS allows for easy setup of controllers and routing. This code sample demonstrates defining a controller with a single route that returns a simple string.

import { Controller, Get } from '@nestjs/common';

@Controller('my-route')
export class MyController {
  @Get()
  getHello(): string {
    return 'Hello World!';
  }
}

Other packages similar to @nestjs/core

FAQs

Package last updated on 02 Jan 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc