Socket
Socket
Sign inDemoInstall

@nestjs/schematics

Package Overview
Dependencies
274
Maintainers
2
Versions
124
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nestjs/schematics

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


Version published
Weekly downloads
2.2M
increased by2.1%
Maintainers
2
Install size
8.88 MB
Created
Weekly downloads
 

Package description

What is @nestjs/schematics?

The @nestjs/schematics package is a collection of schematics for NestJS, a framework for building efficient, reliable and scalable server-side applications. This package provides a set of tools to generate various parts of a NestJS application, such as modules, controllers, services, and more, following best practices and reducing the amount of boilerplate code that developers need to write.

What are @nestjs/schematics's main functionalities?

Generate a new application

This command sets up a new NestJS project with all the necessary configuration and dependencies.

nest new project-name

Generate a module

This command creates a new module in the NestJS application with the name 'users'.

nest generate module users

Generate a controller

This command generates a new controller with the name 'users' within the NestJS application, which can handle incoming HTTP requests.

nest generate controller users

Generate a service

This command creates a new service with the name 'users', which can contain business logic and can be injected into controllers or other services.

nest generate service users

Generate a guard

This command generates a new guard named 'auth', which can be used to implement authentication and authorization logic in the application.

nest generate guard auth

Generate a filter

This command creates a new exception filter named 'common', which can be used to handle exceptions in a consistent way across the application.

nest generate filter common

Generate an interceptor

This command generates a new interceptor named 'logging', which can be used to intercept incoming requests or outgoing responses for tasks like logging or transforming data.

nest generate interceptor logging

Generate a pipe

This command creates a new pipe named 'validation', which can be used to perform validation and data transformation on the request objects.

nest generate pipe validation

Generate a middleware

This command generates a new middleware named 'logger', which can be used to execute code before the route handler is called, such as logging request details.

nest generate middleware logger

Other packages similar to @nestjs/schematics

Readme

Source

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads Coverage Discord Backers on Open Collective Sponsors on Open Collective

Description

The Nest CLI is a command-line interface tool that helps you to initialize, develop, and maintain your Nest applications. It assists in multiple ways, including scaffolding the project, serving it in development mode, and building and bundling the application for production distribution. It embodies best-practice architectural patterns to encourage well-structured apps. Read more here.

Installation

$ npm install -g @nestjs/schematics

Usage

Learn more in the official documentation.

Stay in touch

License

Nest is MIT licensed.

FAQs

Last updated on 05 May 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc