tl-shared-security
Version:
Enterprise-grade security module for frontend and backend applications with comprehensive protection against XSS, CSRF, SQL injection, and other security vulnerabilities
10 lines • 360 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isProd = exports.getEnv = void 0;
const getEnv = (key, fallback) => {
return process.env[key] || fallback || '';
};
exports.getEnv = getEnv;
const isProd = () => (0, exports.getEnv)('NODE_ENV') === 'production';
exports.isProd = isProd;
//# sourceMappingURL=config.js.map
;