syncthing-hooks/env.js

10 lines
223 B
JavaScript
Raw Permalink Normal View History

2021-04-18 01:41:41 +02:00
module.exports = {
getEnvVar: function (varname, defaultvalue){
var result = process.env[varname];
if(result!=undefined)
return result;
else
return defaultvalue;
}
};