bool-emojify
v1.0.1
Published
Emojify Boolean values
Downloads
4
Maintainers
Readme
BoolEmojify
Emojify boolean values
Install
npm i bool-emojify
Option
{
"truthy": '👆',
"falsy": '👇'
}
Usage
const { BoolEmojify } = require('bool-emojify');
const BoolEmojify = new BoolEmojify();
const firstEmojify = BoolEmojify.emojify(true, (result) => {
/* TODO: result.value */
});
const secondEmojify = BoolEmojify.emojify(false); // secondEmojify.value
API
emojify(data, [cb])
data
Type: Boolean
Data boolean value for emojify.
cb
Type: Callback
Return boolean emojify value in callback.
License
MIT © Joydip Roy (rjoydip)