Socket
Socket
Sign inDemoInstall

get-emoji

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 2.0.0

lib/optimize-emoji.js

2

lib/emoji-object.js
import allEmoji from './all-emoji';
export default allEmoji.reduce((emojis, emoji) => {
emojis[emoji] = require(`./emoji/${emoji}.png`);
emojis[emoji] = require(`./optimized-emoji/${emoji}.png`);
return emojis;
}, {});
{
"name": "get-emoji",
"version": "1.0.1",
"version": "2.0.0",
"description": "you give emoji name, we give you an emoji",

@@ -8,3 +8,4 @@ "main": "dist/index.js",

"emoji": "node ./lib/get-emoji-list.js",
"build": "npm run emoji && ./node_modules/.bin/webpack -p --progress",
"optimize": "node ./lib/optimize-emoji.js",
"build": "NODE_ENV='production' npm run optimize && npm run emoji && ./node_modules/.bin/webpack -p --progress",
"prepublish": "npm run build"

@@ -22,2 +23,4 @@ },

"babel-preset-stage-2": "^6.5.0",
"imagemin": "^4.0.0",
"imagemin-optipng": "^4.3.0",
"url-loader": "^0.5.7",

@@ -24,0 +27,0 @@ "webpack": "^1.12.13"

@@ -13,3 +13,3 @@ ## get-emoji

import getEmoji from 'get-emoji';
const rage = getEmoji(rage);
const rage = getEmoji('rage');
```

@@ -22,3 +22,3 @@ var path = require('path');

},
{ test: /\.(png|jpg)$/, loader: 'url-loader' }
{ test: /\.(png)$/, loader: 'url-loader' }
]

@@ -25,0 +25,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc