to-boolean

Convert strings to boolean.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
to-boolean
1011.0.09 years ago9 years agoMinified + gzip package size for to-boolean in KB

Readme

to-boolean Build Status
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