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

@golevelup/nestjs-discovery

Package Overview
Dependencies
Maintainers
3
Versions
13
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

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
423K
increased by1.75%
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

FAQs

Package last updated on 27 Mar 2020

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