Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 😍.
- Host: GitHub
- URL: https://github.com/codeabinash/emoji-store
- Owner: codeAbinash
- License: mit
- Created: 2023-02-14T15:42:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T18:38:28.000Z (12 months ago)
- Last Synced: 2024-01-07T19:46:05.436Z (12 months ago)
- Topics: emoji, emojis, web-emoji
- Language: JavaScript
- Homepage:
- Size: 611 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.