isDev

isDev

Check whether NodeJS Env is development.

Import

import { isDev } from '@fullstacksjs/toolbox';

Signature

function isDev(): boolean {}

Examples

/* NODE_ENV=development node */
isDev() // true
 
/* NODE_ENV=production node */
isDev() // false
 
/* NODE_ENV="" node */
isDev() // false