add readme and example
This commit is contained in:
parent
09239c704c
commit
8be683772a
22
README.md
22
README.md
@ -1,2 +1,20 @@
|
|||||||
# booler
|
# Booler: Convert any values to Boolean.
|
||||||
Convert string to Boolean in JavaScript.
|
|
||||||
|
Convert string/values to Boolean in JavaScript.
|
||||||
|
|
||||||
|
# Installing
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
```js
|
||||||
|
const booler = require('booler')
|
||||||
|
|
||||||
|
console.log(booler('f')) // return false
|
||||||
|
console.log(booler('t')) // return true
|
||||||
|
```
|
||||||
|
|
||||||
|
# Run Test
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ npm run test
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user