syncthing-hooks/env.js
2021-04-18 01:41:41 +02:00

10 lines
223 B
JavaScript

module.exports = {
getEnvVar: function (varname, defaultvalue){
var result = process.env[varname];
if(result!=undefined)
return result;
else
return defaultvalue;
}
};