Skip to content

luxass/github-emojis

Repository files navigation

github-emojis

All GitHub's emojis in one place.

📦 Installation

npm install github-emojis

📚 Usage

import {
  emojis,
  exists,
  get,
  getRaw,
  parse
} from "github-emojis";

// Get all emojis
console.log(emojis);

// Check if an emoji exists
console.log(exists("100")); // true

// Get an emoji by name
console.log(get("100")); // 💯

// Get an emoji url by name
console.log(getRaw("100")); // https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png?v8

// Parse a string with emojis
console.log(parse("Hello :smile:")); // Hello 😄

If you only want to get the emoji urls, you can directly import the emojis object.

import emojis from "github-emojis/emojis";

All emojis

Note

You can view all on github-emojis.luxass.dev

Published under MIT License.