node-emoji
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -31,2 +31,3 @@ /*jslint node: true*/ | ||
} | ||
return ':' + emoji + ':'; | ||
}; | ||
@@ -76,2 +77,2 @@ | ||
; | ||
}; | ||
}; |
{ | ||
"name": "node-emoji", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "simple emoji support for node.js projects", | ||
@@ -5,0 +5,0 @@ "author": "Daniel Bugl <daniel.bugl@touchlay.com>", |
@@ -33,3 +33,3 @@ # node-emoji | ||
## Adding new emoji | ||
Emoji come from [js-emoji](https://github.com/iamcal/js-emoji/blob/master/emoji.js#L164-L1010) (Thanks a lot :thumbsup:). | ||
Emoji come from js-emoji (Thanks a lot :thumbsup:). You can get a JSON file with all emoji here: https://github.com/omnidan/node-emoji/blob/master/lib/emoji.json | ||
@@ -36,0 +36,0 @@ To update the list or add custom emoji, clone this repository and put them into `lib/emojifile.js`. |
@@ -39,2 +39,7 @@ /*jslint node: true*/ | ||
}); | ||
it("should leave unknown emoji", function () { | ||
var coffee = emoji.emojify('I :unknown_emoji: :star: :another_one:'); | ||
should.exist(coffee); | ||
coffee.should.be.exactly('I :unknown_emoji: ⭐️ :another_one:'); | ||
}); | ||
}); | ||
@@ -50,2 +55,2 @@ }); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90704
985