1.0.0 • Published 9 years ago

to-boolean v1.0.0

Weekly downloads
2,307
License
MIT
Repository
github
Last release
9 years ago

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