node-emoji
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "node-emoji", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "simple emoji support for node.js projects", | ||
@@ -25,2 +25,3 @@ "author": "Daniel Bugl <daniel.bugl@touchlay.com>", | ||
}, | ||
"files": ["lib"], | ||
"dependencies": { | ||
@@ -30,2 +31,3 @@ "string.prototype.codepointat": "^0.2.0" | ||
"devDependencies": { | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.0.2", | ||
@@ -35,2 +37,3 @@ "should": "^11.1.0" | ||
"scripts": { | ||
"coverage": "./node_modules/.bin/istanbul cover _mocha test", | ||
"emojiparse": "node lib/emojiparse.js", | ||
@@ -40,4 +43,4 @@ "test": "./node_modules/.bin/mocha --require should --bail --reporter spec test/*", | ||
}, | ||
"main": "index.js", | ||
"main": "lib/emoji.js", | ||
"license": "MIT" | ||
} |
@@ -18,7 +18,8 @@ # node-emoji | ||
```javascript | ||
var emoji = require('node-emoji'); | ||
console.log(emoji.get('coffee')); // returns the emoji code for coffee (displays emoji on terminals that support it) | ||
console.log(emoji.which(emoji.get('coffee'))); // returns the string "coffee" | ||
console.log(emoji.get(':fast_forward:')); // `.get` also supports github flavored markdown emoji (http://www.emoji-cheat-sheet.com/) | ||
console.log(emoji.emojify('I :heart: :coffee:!')); // replaces all :emoji: with the actual emoji, in this case: returns "I ❤️ ☕️!" | ||
var emoji = require('node-emoji') | ||
emoji.get('coffee') // returns the emoji code for coffee (displays emoji on terminals that support it) | ||
emoji.which(emoji.get('coffee')) // returns the string "coffee" | ||
emoji.get(':fast_forward:') // `.get` also supports github flavored markdown emoji (http://www.emoji-cheat-sheet.com/) | ||
emoji.emojify('I :heart: :coffee:!') // replaces all :emoji: with the actual emoji, in this case: returns "I ❤️ ☕️!" | ||
emoji.random() // returns a random emoji + key, e.g. `{ emoji: '❤️', key: 'heart' }` | ||
``` | ||
@@ -25,0 +26,0 @@ |
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
43
142487
3
7
1408