asenv
Version:
NODE_ENV accessor
17 lines (13 loc) • 335 B
JavaScript
/**
* Check if the env it development
* @function isDevelopment
* @returns {boolean} - Development or not
*/
const { DEVELOPMENT } = require('./constants')
const getEnv = require('./get_env')
/** @lends isDevelopment */
function isDevelopment () {
return getEnv() === DEVELOPMENT
}
module.exports = isDevelopment