src/config.js
const { Store } = require('ms-conf');
const path = require('path');
exports.initStore = async (defaultOpts = {}) => {
const store = new Store({ defaultOpts });
store.prependDefaultConfiguration(path.resolve(__dirname, './configs'));
await store.ready();
return store;
};