JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 32352
  • Score
    100M100P100Q170663F
  • License MIT

Common module and utility building blocks for badass NestJS applications

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@golevelup/nestjs-common) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Common

    Utility functions and low level reusable modules that provide building blocks for the @nestjs ecosystem.

    version downloads license

    Getting Started

    ::: code-group

    npm install ---save @golevelup/nestjs-common
    yarn add @golevelup/nestjs-common
    pnpm add @golevelup/nestjs-common

    :::

    Inject Decorator Factory (makeInjectableDecorator)

    Creates a decorator that can be used as a convenience to inject a specific token

    Instead of using @Inject(SOME_THING_TOKEN) this can be used to create a new named Decorator such as @InjectSomeThing() which will hide the token details from users making APIs easier to consume

    Mixins

    The mixin pattern is particularly useful with NestJS components like Interceptors as a mechanism to provide both configuration while still a