• TypeScript 96.7%
  • JavaScript 2.3%
  • HTML 0.6%
  • CSS 0.4%
Find a file
2024-10-01 02:40:42 -04:00
.github/workflows publish via tags 2021-11-03 02:17:26 -04:00
dist/esm filter/show group, subgroup, hair, skin tone 2024-09-28 04:28:09 -04:00
scripts as const 2024-10-01 01:24:50 -04:00
.cpanel.yml comment regarding what cpanel is for 2021-11-25 16:21:07 -05:00
.gitignore filter/show group, subgroup, hair, skin tone 2024-09-28 04:28:09 -04:00
.npmignore filter/show group, subgroup, hair, skin tone 2024-09-28 04:28:09 -04:00
emoji.json filter/show group, subgroup, hair, skin tone 2024-09-28 04:28:09 -04:00
emoji.ts as const 2024-10-01 01:24:50 -04:00
index.css Display emoji in groups and sub-groups on demo page 2024-10-01 02:40:42 -04:00
index.html filter/show group, subgroup, hair, skin tone 2024-09-28 04:28:09 -04:00
index.js Display emoji in groups and sub-groups on demo page 2024-10-01 02:40:42 -04:00
LICENSE.md update license year 2024-09-17 15:25:14 -04:00
package-lock.json 3.3.0 2024-09-28 04:36:21 -04:00
package.json 3.3.0 2024-09-28 04:36:21 -04:00
README.md doc scripts 2024-09-28 04:35:46 -04:00
rollup.config.ts filter/show group, subgroup, hair, skin tone 2024-09-28 04:28:09 -04:00
scrape.js type emoji values as themselves 2024-09-27 15:45:39 -04:00
screenshot.png update screenshot 2024-09-28 04:35:22 -04:00
tsconfig.json download and parse emoji unicode data 2024-09-28 01:53:55 -04:00

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/

Screenshot

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.js into 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