Common module and utility building blocks for badass NestJS applications
npm install @golevelup/nestjs-commonUtility functions and low level reusable modules that provide building blocks for the @nestjs ecosystem.
::: code-group
``bash [npm]`
npm install ---save @golevelup/nestjs-common
`bash [yarn]`
yarn add @golevelup/nestjs-common
`bash [pnpm]`
pnpm add @golevelup/nestjs-common
:::
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
The mixin pattern is particularly useful with NestJS components like Interceptors` as a mechanism to provide both configuration while still a