emoji library
https://lewismoten.github.io/emoji/
- TypeScript 96.7%
- JavaScript 2.3%
- HTML 0.6%
- CSS 0.4%
| .github/workflows | ||
| dist/esm | ||
| scripts | ||
| .cpanel.yml | ||
| .gitignore | ||
| .npmignore | ||
| emoji.json | ||
| emoji.ts | ||
| index.css | ||
| index.html | ||
| index.js | ||
| LICENSE.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| rollup.config.ts | ||
| scrape.js | ||
| screenshot.png | ||
| tsconfig.json | ||
emoji
Provides a lookup list of emoji in unicode format.
Installation
npm i @lewismoten/emoji -s
Code
How to show 🍻
import emoji from "@lewismoten/emoji";
console.log(emoji.clinkingBeerMugs);
Demo
A local demo can be ran using vite
npm i
npm start
http://localhost:5173
The live demo is hosted on GitHub pages:
https://lewismoten.github.io/emoji/
Scripts
- clean: drops the build & dist folders
- build: creates typescript
- bundle: creates JavaScript & TypeScript Definitions for packaging
- prepublishOnly: ensures a new bundle is created for publishing
- start: Runs demo site at http://localhost:5173
- test: Misc tests from research
- get-zwj: Downloads zero-width join data (deprecated)
- get-sequences: Downloads sequences (deprecated)
- get-test: Downloads test data
- parse: Downloads test data and parses it to create emoji.ts and emoji.json
Scraper (Depricated)
Names and codes scraped from https://unicode.org/emoji/charts/full-emoji-list.html
- Open the web page
- Wait for it to load completely
- Copy code from
./scrape.jsinto the browsers console - Wait for the page to be parsed and new code generated
- Copy the generated code into
./emoji.js - In the terminal, type
npm run build
