Ensure environment variable exists. If not, throw to fail early.
import forceEnv from 'force-env'
const nodeEnv = forceEnv('NODE_ENV')
// => 'development', 'production', 'test', or throw if not set
- force-num - Ensure environment variable exists and convert to a number. If not, throw to fail early.