booler/README.md

34 lines
489 B
Markdown
Raw Normal View History

2019-10-31 09:07:04 +07:00
# Booler: Convert any values to Boolean.
Convert string/values to Boolean in JavaScript.
2019-10-31 09:14:06 +07:00
## Installing
2019-10-31 09:07:04 +07:00
2019-10-31 09:14:06 +07:00
```shell
2019-10-31 09:45:34 +07:00
$ npm i boolerjs --save
2019-10-31 09:14:06 +07:00
```
## Example
2019-10-31 09:07:04 +07:00
```js
2019-10-31 09:45:34 +07:00
const booler = require('boolerjs')
2019-10-31 09:07:04 +07:00
console.log(booler('f')) // return false
console.log(booler('t')) // return true
```
2019-10-31 09:14:06 +07:00
## Run Test
2019-10-31 09:07:04 +07:00
```shell
$ npm run test
```
2019-10-31 09:14:06 +07:00
## Contribution
if you any ideas or concepts, please kindly provide and support with us.
### Author
Name: <b>Sambo Chea</b> <br/>
Email: sombochea@cubetiqs.com