force-bool
v1.0.0
Published
Parse environment variable to a boolean
Downloads
63
Readme
Parse environment variable to a boolean
import forceBool from 'force-bool'
const nodeEnv = forceBool('SOME_FEATURE')
// => true if 'true', false if 'false' or not set