asenv
Version:
NODE_ENV accessor
17 lines (13 loc) • 327 B
JavaScript
/**
* Check if the env is production
* @function isProduction
* @returns {boolean} - Production or not
*/
const { PRODUCTION } = require('./constants')
const getEnv = require('./get_env')
/** @lends isProduction */
function isProduction () {
return getEnv() === PRODUCTION
}
module.exports = isProduction