parse-bool
v0.0.2
Published
Converts a string representation of a bool into a Boolean value.
Downloads
78
Readme
Parse-Bool
Converts a string representation of a bool into a Boolean value.
Quick Start
var parseBool = require('parse-bool');
var bool = parseBool('true');
if (bool) { ... }
Supported Strings
- "true" > True
- "false" > False
- "null" > Null