This package has been deprecated

Author message:

Just use node-konfig-core directly. See docs for integration information

@willsoto/nestjs-node-konfig
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

NestJS Node Konfig

Thanks to Konfig for the inspiration. This library would not have been possible without it.

Documentation is available at https://willsoto.github.io/node-konfig/

Installation

npm install @willsoto/nestjs-node-konfig
yarn add @willsoto/nestjs-node-konfig
pnpm add @willsoto/nestjs-node-konfig

Quick look

// config.module.ts
import { NodeKonfigModule } from "@willsoto/nestjs-node-konfig";
import { Module } from "@nestjs/common";
import { ValueLoader } from "@willsoto/node-konfig-core";

@Module({
  imports: [
    NodeKonfigModule.register({
      storeOptions: {
        loaders: [
          new ValueLoader({
            values: {
              foo: "bar",
            },
          }),
        ],
      },
    }),
  ],
})
export class ConfigModule {}
// some.service.ts
import { Injectable } from "@nestjs/common";
import { Store } from "@willsoto/node-konfig-core";

@Injectable()
export class SomeService {
  constructor(private readonly store: Store) {}
}

Package Sidebar

Install

npm i @willsoto/nestjs-node-konfig

Weekly Downloads

0

Version

1.0.7

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

16

Last publish

Collaborators

  • paradox41