UNPKG

311 BJavaScriptView Raw
1let config = require('../config/ocular.config')();
2
3const configPath = process.argv[2] || '';
4
5configPath.split('.')
6 .filter(Boolean)
7 .forEach(path => {
8 config = config[path];
9 });
10
11if (typeof config !== 'string') {
12 config = config === undefined ? "" : JSON.stringify(config);
13}
14console.log(config);