forked from sombochea/booler
updated information and hnage booler.js to booler
This commit is contained in:
parent
48bf503971
commit
7c8e9d81be
@ -5,7 +5,7 @@ Convert string/values to Boolean in JavaScript.
|
|||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ npm i booler.js --save
|
$ npm i booler --save
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
3
index.js
3
index.js
@ -1,7 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @author Samob Chea <sombochea@cubetiqs.com>
|
|
||||||
*
|
|
||||||
* Import booler module.
|
* Import booler module.
|
||||||
|
* @author Samob Chea <sombochea@cubetiqs.com>
|
||||||
*/
|
*/
|
||||||
const booler = require('./src/booler')
|
const booler = require('./src/booler')
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "booler.js",
|
"name": "booler",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Convert string to Boolean in JavaScript.",
|
"description": "Convert string to Boolean in JavaScript.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@ -11,9 +11,10 @@
|
|||||||
"url": "git+https://github.com/SomboChea/booler.git"
|
"url": "git+https://github.com/SomboChea/booler.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Boolean",
|
"booler",
|
||||||
"JavaScript",
|
"boolean",
|
||||||
"Converter"
|
"js",
|
||||||
|
"converter"
|
||||||
],
|
],
|
||||||
"author": "Sambo Chea",
|
"author": "Sambo Chea",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
|
*
|
||||||
|
* Booler can convert any value to Boolean type.
|
||||||
|
*
|
||||||
* @author Samob Chea <sombochea@cubetiqs.com>
|
* @author Samob Chea <sombochea@cubetiqs.com>
|
||||||
*
|
|
||||||
* Booler can convert any value to Boolean.
|
|
||||||
*
|
|
||||||
* @param {*} val Value to parse.
|
* @param {*} val Value to parse.
|
||||||
*/
|
*/
|
||||||
const booler = (val) => {
|
const booler = (val) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user