Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 529 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 529 Bytes

Config - JSON configuration loader, leveraging Confidence's document format

Development

Build image

docker-compose build --no-cache

Logon to container

docker-compose run --rm node /bin/bash

Run tests

npm test

Coding conventions

https://hapijs.com/styleguide

Usage

const Config = require('config');

(async () => {

    const config = new Config();

    await config.load('your-config.json');

    console.log(config.get('/yourKey'));
})();