Emojify object keys and values into a new emojify object.
npm install obj-emojify
$ npm i obj-emojify
`
Usage
`js
const { ObjEmojify } = require('obj-emojify');
const obj = {
"coffee": "I :heart: coffee value",
"100": {
"name": "100",
"contents": {
"name": "funny",
"contents": [1, 2]
}
},
"santa": ":santa: value"
};
const objEmojify = new ObjEmojify();
const firstEmojify = objEmojify.emojify(obj, (result) => { / TODO: result.value / });
const secondEmojify = objEmojify.emojify(obj); // output: secondEmojify.value
`
Configuration
To enable global configuration define the options.The following illustrates all the available options with their respective default values.
`json
{
"enableOnKey": true,
"enableOnValue": true,
}
`
API
$3
#### data
Type: Object
Data object for emojify.
#### cb
Type: Callback`