getNodeEnv
Check whether NodeJS Env is development.
Import
import { getNodeEnv } from '@fullstacksjs/toolbox';
Signature
function getNodeEnv(fallback?: string): string {}
Examples
/* NODE_ENV=development node */
getNodeEnv() // "development"
/* NODE_ENV=production node */
getNodeEnv() // "production"
/* NODE_ENV="" node */
getNodeEnv('development') // "development"