New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

emoji-shortname-to-image

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-shortname-to-image - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

6

index.js

@@ -41,5 +41,5 @@ const emojiRegex = require('emoji-regex');

_replaceShortNameWithImgTag (shortname) {
const image = emojiMap[shortname].image;
if (!image) return shortname;
return `<img class="${this.klass}" src="${this.cdnUrl}${image}" alt="${shortname}" title="${shortname}" />`;
const emoji = emojiMap[shortname];
if (!emoji) return shortname;
return `<img class="${this.klass}" src="${this.cdnUrl}${emoji.image}" alt="${shortname}" title="${shortname}" />`;
}

@@ -46,0 +46,0 @@

{
"name": "emoji-shortname-to-image",
"description": "Replace emoji shortnames with image tags",
"version": "1.2.1",
"version": "1.2.2",
"main": "index.js",

@@ -6,0 +6,0 @@ "license": "MIT",

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