resolve-boolean
v0.1.1
Published
resolve yes/no, 1/0 to true/false
Downloads
3
Maintainers
Readme
resolve-boolean
resolve yes/no, 1/0 to true/false
Installation
$ npm install --save resolve-boolean
Usage
const resolveBoolean = require('resolve-boolean');
resolveBoolean('yes') // => true
resolveBoolean('no') // => false
resolveBoolean(1) // => true
resolveBoolean(2) // => false
License
MIT © Sean Wilson