GitXplorerGitXplorer
s

force-bool

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
0b4c57db5ac3411dd044d73182730dc43b546546

init

sstevemao committed 4 years ago

README

The README file for this repository.

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