Comparing version 1.1.2 to 1.1.3
@@ -1,2 +0,3 @@ | ||
// Dependencies | ||
"use strict"; | ||
const emojisPath = require.resolve("emojilib/emojis.json") | ||
@@ -6,11 +7,19 @@ , rJson = require("r-json") | ||
, iterateObject = require("iterate-object") | ||
, emojis = rJson(emojisPath) | ||
; | ||
let emojis = rJson(emojisPath); | ||
// Export the emojic object | ||
var emojic = module.exports = {}; | ||
const emojic = module.exports = {}; | ||
// Append the chars to it | ||
iterateObject(emojis, function (value, name) { | ||
if (name === "keys" || !value.char) { return; } | ||
switch (name) { | ||
case "+1": | ||
name = "thumbs-up"; | ||
break; | ||
case "-1": | ||
name = "thumbs-down"; | ||
break; | ||
} | ||
emojic[camelo(name)] = value.char; | ||
@@ -17,0 +26,0 @@ }); |
{ | ||
"name": "emojic", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Emoji in your Node.js command line apps.", | ||
@@ -30,5 +30,4 @@ "main": "lib/index.js", | ||
"camelo": "^1.0.0", | ||
"emojilib": "^1.1.0", | ||
"emojilib": "^2.0.2", | ||
"iterate-object": "^1.2.0", | ||
"map-o": "^1.2.0", | ||
"r-json": "^1.1.0" | ||
@@ -35,0 +34,0 @@ }, |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4
23
3564
3
1
0
+ Addedemojilib@2.4.0(transitive)
- Removedmap-o@^1.2.0
- Removeddeffy@2.0.0(transitive)
- Removedemojilib@1.1.0(transitive)
- Removedmap-o@1.3.0(transitive)
- Removedtyppy@2.0.0(transitive)
- Removedul@5.0.0(transitive)
Updatedemojilib@^2.0.2