Handles an input value as string and checks if its string representation has the same value as NODE_ENV environment variable (case insensitive).
// NODE_ENV === 'development'isNodeEnv('development') // (true)isNodeEnv('Development') // (true)isNodeEnv('DEVELOPMENT') // (true)isNodeEnv('production') // (false)isNodeEnv('Production') // (false)isNodeEnv('PRODUCTION') // (false)
(true), NODE_ENV is set to 'production'.
The name to check.
Generated using TypeDoc
Handles an input value as string and checks if its string representation has the same value as NODE_ENV environment variable (case insensitive).
Example
Returns
(true), NODE_ENV is set to 'production'.