# @willsoto/nestjs-node-konfig

> Node Konfig integration package for usage with Nest.js

Latest version **1.0.7** (published 2021-05-11) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2021-05-11 |
| First published | 2021-01-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Will Soto |
| Maintainers | paradox41 |
| Keywords | config, configuration, yaml, toml, json, configuration-management, nestjs, typescript, nest |

## Links

- npm: https://www.npmjs.com/package/@willsoto/nestjs-node-konfig
- npm.io page: https://npm.io/package/@willsoto/nestjs-node-konfig

## Dependencies (1)

- [@willsoto/node-konfig-core](https://npm.io/package/@willsoto/node-konfig-core.md) 2.2.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.7 (latest) — 2021-05-11
- 1.0.6 — 2021-04-21
- 1.0.5 — 2021-04-12
- 1.0.4 — 2021-04-11
- 1.0.3 — 2021-04-11
- 1.0.2 — 2021-04-11
- 1.0.1 — 2021-04-08
- 1.0.0 — 2021-04-06
- 0.1.1 — 2021-01-30

## README

# NestJS Node Konfig

> Thanks to [Konfig](https://github.com/lalamove/konfig) for the inspiration. This library would not have been possible without it.

Documentation is available at [https://willsoto.github.io/node-konfig/](https://willsoto.github.io/node-konfig/)

## Installation

```bash
npm install @willsoto/nestjs-node-konfig
```

```bash
yarn add @willsoto/nestjs-node-konfig
```

```bash
pnpm add @willsoto/nestjs-node-konfig
```

## Quick look

```typescript
// 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 {}
```

```javascript
// some.service.ts
import { Injectable } from "@nestjs/common";
import { Store } from "@willsoto/node-konfig-core";

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

---
_Source: https://npm.io/package/@willsoto/nestjs-node-konfig · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
