16 lines
690 B
JavaScript
16 lines
690 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.envString = envString;
|
|
exports.envFloat = envFloat;
|
|
exports.envInt = envInt;
|
|
function envString(variable, defaultString) {
|
|
return typeof process.env[variable] !== 'undefined' ? process.env[variable] : defaultString;
|
|
}
|
|
function envFloat(variable, defaultFloat) {
|
|
return typeof process.env[variable] !== 'undefined' ? parseFloat(process.env[variable]) : defaultFloat;
|
|
}
|
|
function envInt(variable, defaultInt) {
|
|
return typeof process.env[variable] !== 'undefined' ? parseInt(process.env[variable]) : defaultInt;
|
|
}
|
|
module.exports = { envString, envFloat, envInt };
|
|
//# sourceMappingURL=index.js.map
|