Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emoji-datasource

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-datasource

Emoji data and images

  • 2.4.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
100K
increased by5.12%
Maintainers
1
Weekly downloads
 
Created
Source

This project provides easy-to-parse data about emoji, along with a spritesheet-style images for use on the web.

You can see a catalog of the emoji data here: http://unicodey.com/emoji-data/table.htm

Images are extracted from their sources and this library attempts to track the latest available versions. If you're looking for older versions of Apple of Android images (such as the Hairy Heart) then you'll need to look at previous revisions.

  • Apple Emoji: Copyright © Apple Inc. - OS X 10.11.1
  • Android Emoji: Copyright © The Android Open Source Project - Lollipop
  • Twitter Emoji Copyright © Twitter, Inc. - The original release
  • Emoji One Emoji: Copyright © Ranks.com Inc. - master as of 2015-03-05

Libraries which use this data

Using the data

The file you want is emoji.json. It contains an array of entries for emoji that look like this:

[
	{
		"name": "WHITE UP POINTING INDEX",
		"unified": "261D",
		"variations": [
			"261D-FE0F"
		],
		"docomo": null,
		"au": "E4F6",
		"softbank": "E00F",
		"google": "FEB98",
		"image": "261d.png",
		"sheet_x": 1,
		"sheet_y": 2,
		"short_name": "point_up",
		"short_names": [
			"point_up"
		],
		"text": null,
		"texts": null,
		"category": "People",
		"sort_order": 116,
		"has_img_apple": true,
		"has_img_google": true,
		"has_img_twitter": true,
		"has_img_emojione": false,
		"skin_variations": {
			"261D-1F3FB": {
				"unified": "261D-1F3FB",
				"image": "261d-1f3fb.png",
				"sheet_x": 1,
				"sheet_y": 3,
				"has_img_apple": true,
				"has_img_google": false,
				"has_img_twitter": false,
				"has_img_emojione": false
			},
			...
		}
	},
	...
]

An explanation of the various fields is in order:

  • name - The offical Unicode name, in SHOUTY UPPERCASE.
  • unified - The Unicode codepoint, as 4-5 hex digits. Where an emoji needs 2 or more codepoints, they are specified like 1F1EA-1F1F8.
  • variations - An array of commonly used codepoint variations.
  • docomo, au, softbank, google - The Unicode codepoints used by various mobile vendors.
  • image - The name of the image file.
  • sheet_x & sheet_y - The position of the image in the spritesheets.
  • short_name - The commonly-agreed upon short name for the image, as supported in campfire, github etc via the :colon-syntax:
  • short_names - An array of all the known short names.
  • text - An ASCII version of the emoji (e.g. :)), or null where none exists.
  • texts - An array of ASCII emoji that should convert into this emoji. Each ASCII emoji will only appear against a single emoji entry.
  • has_img_* - A flag for whether the given image set has an image (named by the image prop) available.
  • skin_variations - For skin-varying emoji, a list of alternative glyphs.

Version history

See CHANGES.md

Keywords

FAQs

Package last updated on 11 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc