Code Monkey home page Code Monkey logo

emoji-dictionary's Introduction

emoji-dictionary

PayPal AMA Version Downloads Get help on Codementor

Convert emoji names in unicode characters and vice versa. Get emoji category by emoji unicode.

☁️ Installation

$ npm i --save @rivkesse/emoji-dictionary

πŸ“‹ Example

const emoji = require("emoji-dictionary");

console.log(emoji.getName("😍"));
// heart_eyes

console.log(emoji.getUnicode("heart_eyes"));
// 😍

console.log(emoji.getCategory("😍"));
// people

console.log(emoji.unicode);
// [ 'πŸ’―',
//   'πŸ”’',
//   'πŸ˜€',
//   '😬',
//   '😁',
//   'πŸ˜‚',
//   'πŸ˜ƒ',
//   'πŸ˜„',
//   ...
//   'πŸ‡ΏπŸ‡²',
//   'πŸ‡ΏπŸ‡Ό' ]

console.log(emoji.names);
// [ '100',
//   '1234',
//   'grinning',
//   'grimacing',
//   'grin',
//   ...
//   'ye',
//   'zm',
//   'zw' ]

πŸ“ Documentation

getName(unicodeChar)

Gets the name of the unicode emoji.

Params

  • String unicodeChar: The emoji unicode character.

Return

  • String The emoji name.

getUnicode(name)

Gets the unicode character by providing the emoji name.

Params

  • String name: The emoji name.

Return

  • String The emoji unicode character.

getCategory(unicodeChar)

Gets the category of the unicode emoji.

Params

  • String unicodeChar: The emoji unicode character.

Return

  • String The emoji category.

getEmojiInfo(unicodeChar)

Gets the name and category based on the emoji unicode

Params

  • String unicodeChar: The emoji unicode character.

Return

  • Object Object containing emoji unicode, name and category

πŸ˜‹ How to contribute

Have an idea? Found a bug? See how to contribute.

πŸ“œ License

MIT © Ionică Bizău

emoji-dictionary's People

Contributors

rivkahrga avatar ionicabizau avatar

Watchers

James Cloos avatar Rivkah Tropper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.