rocca commited on
Commit
4bec141
1 Parent(s): 87f5092

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -1,9 +1,10 @@
1
  A collection of 14,808 emojis from Apple, Facebook, Google, and WhatsApp. It includes all the emojis for these apps/platforms as of early 2022.
2
 
3
  * Counts: Facebook=3664, Google=3664, Apple=3961, WhatsApp=3519.
4
- * The emoji code points are at the end of the filename. For example: The filename "astronaut-dark-skin-tone_1f9d1-1f3ff-200d-1f680.png" can be converted to an emoji like this in JavaScript:
5
  * `"\u{1f9d1}\u{1f3ff}\u{200d}\u{1f680}"`
6
  * `String.fromCodePoint(0x1f9d1, 0x1f3ff, 0x200d, 0x1f680)`
 
7
  * The images are all 144x144 pixels.
8
 
9
  ## apple examples:
 
1
  A collection of 14,808 emojis from Apple, Facebook, Google, and WhatsApp. It includes all the emojis for these apps/platforms as of early 2022.
2
 
3
  * Counts: Facebook=3664, Google=3664, Apple=3961, WhatsApp=3519.
4
+ * The emoji code points are at the end of the filename. For example, the filename "astronaut-dark-skin-tone_1f9d1-1f3ff-200d-1f680.png" can be converted to an emoji in several different ways (in JavaScript):
5
  * `"\u{1f9d1}\u{1f3ff}\u{200d}\u{1f680}"`
6
  * `String.fromCodePoint(0x1f9d1, 0x1f3ff, 0x200d, 0x1f680)`
7
+ * More generally: `String.fromCodePoint(...filename.split("_")[1].split("-").map(n => parseInt(n, 16)))`
8
  * The images are all 144x144 pixels.
9
 
10
  ## apple examples: