cdk8s-config
v0.0.9
Published
Add configuration features using environment variables.
Downloads
14
Readme
cdk8s-config
Add configuration 🛠 features to your cdk8s project.
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/