Skip to content

6 config factory

wiki[bot] edited this page Aug 23, 2026 · 1 revision

6. Config-Factory: The @triplef/config-factory Library

A NestJS configuration library providing decorators and modules for caching return values and validating configurations. @triplef/config-factory is published to npm as an ESM-only package.

This library is ESM-only and does not support CommonJS. Your project must use ES modules.

Modules

Module Description
6.1. Config-Factory Module NestJS module for registering configuration providers
6.2. Cache Return Value Decorator that caches method/getter return values with optional Joi validation
6.3. Validate Return Value Decorator that validates method/getter return values against a Joi schema

Installation

npm install @triplef/config-factory

Peer Dependencies

npm install @triplef/helpers @nestjs/common joi

Clone this wiki locally