Socket
Socket
Sign inDemoInstall

emoji-api

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    emoji-api

Simple Emoji API


Version published
Weekly downloads
11K
increased by0.23%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

EmojiAPI

Simple Emoji API.

Installing

$ npm i emoji-api

Example

// ESM
import * as emoji from "emoji-api";
// CJS
const emoji = require("emoji-api");

console.log(emoji.get("🥺"));

/*
Emoji {
  _data: {
    emoji: '🥺',
    name: 'pleading face',
    group: 'Smileys & Emotion',
    sub_group: 'face-concerned',
    codepoints: '1F97A'
  }
}
*/

console.log(emoji.get("🥺").formattedName); // Pleading Face
console.log(emoji.get("🥺").twemoji()); // https://twemoji.maxcdn.com/v/latest/72x72/1f97a.png

Arrange emojis by category

const { arrange } = require("emoji-api");

console.log(arrange()); // { "Smileys & Emotion": [Emoji, Emoji, ...], ... }

Other Examples

console.log(emoji.all()); // [Emoji, Emoji, Emoji, ...]
console.log(emoji.emojiToUnicode("🥺")); // 1f97a
console.log(emoji.unicodeToEmoji("1f97a")); // 🥺

Keywords

FAQs

Last updated on 02 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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