You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@golevelup/nestjs-discovery

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golevelup/nestjs-discovery

A Badass NestJS module for querying your app's controllers, providers and handlers

4.0.1
Source
npm
Version published
Weekly downloads
618K
5.09%
Maintainers
3
Weekly downloads
 
Created

What is @golevelup/nestjs-discovery?

@golevelup/nestjs-discovery is a utility library for the NestJS framework that provides tools for discovering and interacting with providers, controllers, and other components within a NestJS application. It simplifies the process of dynamically finding and using these components.

What are @golevelup/nestjs-discovery's main functionalities?

Discover Providers

This feature allows you to discover all providers that have a specific metadata key. This can be useful for dynamically interacting with certain providers based on custom metadata.

const providers = await discoveryService.providersWithMetaAtKey('someMetaKey');

Discover Controllers

Similar to discovering providers, this feature lets you find all controllers that have a specific metadata key. This can be useful for dynamically routing or handling requests based on controller metadata.

const controllers = await discoveryService.controllersWithMetaAtKey('someMetaKey');

Discover Methods

This feature allows you to discover all methods within your application that have a specific metadata key. This can be useful for dynamically invoking methods or applying certain behaviors based on method metadata.

const methods = await discoveryService.methodsWithMetaAtKey('someMetaKey');

Other packages similar to @golevelup/nestjs-discovery

Keywords

NestJS

FAQs

Package last updated on 10 Apr 2024

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