A lightweight configuration module powered by yaml.
Using yarn
yarn add @ekino/config
Or npm
npm install @ekino/config
This module assumes all your configuration is defined in a single directory:
├─ conf/
├─ base.yaml # the base configuration
├─ env_mapping.yaml # defines mapping between env vars and config keys
└─ dev.yaml # loaded if NODE_ENV is `dev`
Be warned that this module uses synchronous file reads in order to be easily required.