to-boolean
v1.0.0
Published
Convert strings to boolean.
Downloads
5,239
Maintainers
Readme
to-boolean
Convert strings to boolean.
Install
Via npm:
$ npm install to-boolean --save
Via Bower:
$ bower install to-boolean --save
Usage
var toBoolean = require('to-boolean');
toBoolean('y'); // true
toBoolean('no'); // false
toBoolean(''); // false
toBoolean(' '); // false
toBoolean('1'); // true
License
MIT © Rafael Rinaldi