UNPKG

detect-environment

Version:

Detect environments in JavaScript similar to the way Laravel does

24 lines (17 loc) 351 B
'use strict'; var // pro = require('./getProcess')(), /** * */ getNodeEnv = function getNodeEnv () { // if (!pro.env.NODE_ENV || typeof pro.env.NODE_ENV !== 'string') { return ''; } // return pro.env.NODE_ENV; }; // Expose to node.js module.exports = getNodeEnv;