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

@codemaskjs/nestjs-config

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemaskjs/nestjs-config

Nestjs Config Module

  • 1.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Codemask Nestjs Config Module

How to Install

Required peer dependencies

[!NOTE] If your project already uses @nestjs/common, class-validator and/or class-transformer - then skip installing mentioned peer dependencies.

$ yarn add @nestjs/common class-validator class-transformer

Adding package to your project

$ yarn add @codemaskjs/nestjs-config

Configuration

Configuring ConfigModule for root

For providing globally available configs, use the example from below:

import { Module } from '@nestjs/common'
import { ConfigModule } from '@codemaskjs/nestjs-config'

@Module({
    imports: [
        ConfigModule.forRoot()
        // or
        ConfigModule.forRoot([<your config class>, ...])
        // or
        ConfigModule.forFeature([<your config class>, ...])
        // or
        ConfigModule.forTest(<your config class>, <optional and partial overrides>)
    ]
})
export class MailerModule {}

Examples

  1. Config Class

To be updated

  1. Config Module

Using forRoot

To be updated

Using forFeature

To be updated

Using forFeature with TypeOrm

  1. Config Service

To be updated

Keywords

FAQs

Package last updated on 21 Jun 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

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