2.0.1 • Published 2 years ago

emoji-store v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Emoji Store

Release Date Tag

A JavaScript library for platform independent Emojis 😍.

Supports most of the web technologies : React, React-Native Vue, Angular, Preact, Lit, Svelte etc.

Install

npm i emoji-store

Use

import emoji, { Apple160 } from 'emoji-store';

function App() {
  return (
    <div>
      <img src={emoji('❤️‍🔥')} /> {/*Default Apple64*/}
      <img src={emoji('❤️‍🔥', Apple160)} />
    </div>
  );
}

export default App;
import { Emoji, Facebook96 } from 'emoji-store';

const customEmoji = Emoji(Facebook96);

function App() {
  return (
    <div>
      <img src={customEmoji('❤️‍🔥')} />
    </div>
  );
}

Custom Emoji Config

const props = {
  author: 'apple',
  size: 160,
  type: 'png',
};

const customEmoji = Emoji(props);

console.log(customEmoji('🫢'));
console.log(customEmoji('❤️‍🔥'));
console.log(customEmoji('🏄🏻‍♂️'));
console.log(customEmoji('🧑🏻‍💻'));

Supporting Emojis

PlatformTypeSize(px)Constant
ApplePNG64Apple64
ApplePNG160Apple160
FacebookPNG64Facebook64
FacebookPNG96Facebook96

How it works

It returns the link of the specified emoji that is displayed in the browser.