This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
crispy-train/lib/base/Config.js

32 lines
461 B
JavaScript

'use strict';
let nconf = require('nconf');
/**
* Config management class
*/
class Config {
constructor() {
// Use, in order of preference:
// - command line arguments
// - environment variables
// - config files
nconf.argv()
.env()
.file({
});
}
/**
* Retreive a config value
*
* @param {String} key - the name of the config value
* @return {mixed} - the configuration value
*/
get(key) {
}
}
module.exports = Config;