Socket
Socket
Sign inDemoInstall

node-emoji

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-emoji - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

7

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc