1.0.0 • Published 8 years ago

parseboolean v1.0.0

Weekly downloads
18
License
MIT
Repository
github
Last release
8 years ago

parseBoolean

The missing parseBool function we all secretly want

Installing parseBoolean

Using npm

npm install --save parseboolean

Usage

Using parseBool is simple. Just require it and use it as if it was a function.

var parseBool = require('parseboolean');
console.log(parseBool('true')); // Outputs true

See the tests folder for an in-depth look at the true/false logic parseBool uses.