Skip to content

Converts a string (e.g. from an env var) into a JS Boolean

Notifications You must be signed in to change notification settings

reflexions/string-to-boolean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Converts a string to a boolean, treating '0', 'false', 'FALSE', 'off' and falsy values like '' to false, the rest to true.

About

Converts a string (e.g. from an env var) into a JS Boolean

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published