From 8be683772a86cfa5c8afd2761289e50db6181d8a Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Thu, 31 Oct 2019 09:07:04 +0700 Subject: [PATCH] add readme and example --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 777dd5c..ed6ef56 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ -# booler -Convert string to Boolean in JavaScript. +# Booler: Convert any values to Boolean. + +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 +```