npm.io
0.0.9 • Published 6 years ago

cdk8s-config

Licence
MIT
Version
0.0.9
Deps
4
Size
13 kB
Vulns
0
Weekly
0
Stars
1

cdk8s-config

Add configuration features to your cdk8s project.

GitHub version npm version

Overview

# my-config.yaml
# --------------

my-key:
  key1: value1
// index.ts
// --------

import Config from 'cdk8s-config';

const CONFIG = await Config.fromFile('<path to your config yaml>');
const data = CONFIG.get();

// data = { 'my-key': { 'key1': 'value1' } }

Installation

$ npm i cdk8s-config

or

$ yarn add cdk8s-config

Documentation

Check out the full documentation here: https://kumboleijo.github.io/cdk8s-config/

Run the Examples

$ npx ts-node ./examples/1-basic/

Keywords