You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
626 B

module.exports = () => {
var o = {
__: (c, w, s) => {
var data = conf.get(c);
if(typeof s != "undefined"){
data[w] = s;
conf.set(c, data);
}
return data[w];
},
//config
config: {
email: s => o.__('config', 'email', s),
remote: s => o.__('config', 'remote', s)
}
};
const conf = new (require('conf'))({
projectName: 'mksec',
config: {
type: "object",
default: {
email: '',
remote: "https://mksec.yimian.xyz/publish/"
}
}
});
if(conf.get('config') == undefined) conf.set('config', {
email: '',
remote: "https://mksec.yimian.xyz/publish/"
});
return o;
}