Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (39 sloc) 1.2 KB


A simple emoji map package that builds its data whenever it's installed.

This package maps the emoji codes (2049) and sets them equal to its shortnames (["interrobang","exclamation_question"]).


const emojis = require('simple-emoji-map');

Or using ES6 imports:

import emojis from 'simple-emoji-map';


The JSON file is automatically generated on install.

To rebuild the JSON data file, it's a pretty simple process.

const build = require('simple-emoji-map/build');
// import build from 'simple-emoji-map/build';



To customize the build process, you will need either a .simple-emoji-map file or a simple-emoji-map property in package.json.

  "shortnames": {},
  "type": "emoji", // or 'codepoint',
  "regex": null // regex for whitelist


This is also the way to add custom shortnames to the map file.

For example, if you want car to show the emoji for red_car (1f697), the file or property would look something like this:

  "shortnames": {
    "1f697": ["car"]

Keep in mind this will not replace any existing shortnames, only add to the emoji code's list.

You can’t perform that action at this time.