"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get getEnvOrDefault () {
        return getEnvOrDefault;
    },
    get isDevelopmentEnvironment () {
        return isDevelopmentEnvironment;
    },
    get isNode () {
        return isNode;
    },
    get isProductionEnvironment () {
        return isProductionEnvironment;
    },
    get isTestEnvironment () {
        return isTestEnvironment;
    }
});
const _serverconstants = require("../server.constants");
function getEnvOrDefault(key, defaultVal) {
    const val = process.env[key];
    if (!val?.length) return defaultVal;
    return val;
}
function isDevelopmentEnvironment() {
    return process.env.NODE_ENV === _serverconstants.AppConstants.defaultDevelopmentEnv;
}
function isTestEnvironment() {
    return process.env.NODE_ENV === _serverconstants.AppConstants.defaultTestEnv;
}
function isProductionEnvironment() {
    return process.env.NODE_ENV === _serverconstants.AppConstants.defaultProductionEnv;
}
function isNode() {
    return "NODE" in process.env;
}

//# sourceMappingURL=env.utils.js.map