Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codeabinash/emoji-store

A JavaScript library for platform independent Emojis 😍.
https://github.com/codeabinash/emoji-store

emoji emojis web-emoji

Last synced: about 1 month ago
JSON representation

A JavaScript library for platform independent Emojis 😍.

Awesome Lists containing this project

README

        

# Emoji Store

![Release Date](https://img.shields.io/github/release-date/codeabinash/emoji-store?color=limegreen)
![Tag](https://img.shields.io/github/tag/codeabinash/emoji-store?color=limegreen)

A JavaScript library for platform independent Emojis 😍.

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

## Install

```bash
npm i emoji-store
```

## Use

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

function App() {
return (


{/*Default Apple64*/}


);
}

export default App;
```

```tsx
import { Emoji, Facebook96 } from 'emoji-store';

const customEmoji = Emoji(Facebook96);

function App() {
return (




);
}
```

## Custom Emoji Config

```ts
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

| Platform | Type | Size(px) | Constant |
| -------- | ---- | -------- | ---------- |
| Apple | PNG | 64 | Apple64 |
| Apple | PNG | 160 | Apple160 |
| Facebook | PNG | 64 | Facebook64 |
| Facebook | PNG | 96 | Facebook96 |

## How it works

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