All Projects → omnidan → Node Emoji

omnidan / Node Emoji

Licence: mit
😏 simple emoji support for node.js projects

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Emoji

Rich
Rich is a Python library for rich text and beautiful formatting in the terminal.
Stars: ✭ 31,664 (+3205.22%)
Mutual labels:  emoji
Styleguide Git Commit Message
/sBin/StyleGuide/Git/CommitMessage
Stars: ✭ 934 (-2.51%)
Mutual labels:  emoji
Qpdialcodepickerview
International Dial Code Picker View for Country or Area 国家或地区国际区号选择器
Stars: ✭ 15 (-98.43%)
Mutual labels:  emoji
Emoji Minesweeper
💥💣💥
Stars: ✭ 706 (-26.3%)
Mutual labels:  emoji
Manamoji Slack
Slack emojis for Magic card symbols. Used by Scryfall’s Slack bot.
Stars: ✭ 16 (-98.33%)
Mutual labels:  emoji
Emojis
this is emoji images
Stars: ✭ 9 (-99.06%)
Mutual labels:  emoji
Ngx Markdown
Angular markdown component/directive/pipe/service to parse static, dynamic or remote content to HTML with syntax highlight
Stars: ✭ 687 (-28.29%)
Mutual labels:  emoji
Flags
🇸🇪 Flag extension make flag emoji, image
Stars: ✭ 28 (-97.08%)
Mutual labels:  emoji
Emojione Color Font
End of Life. Switch to https://github.com/eosrei/twemoji-color-font
Stars: ✭ 899 (-6.16%)
Mutual labels:  emoji
Sbsanimoji
🐵 Animoji app using Apples AvatarKit
Stars: ✭ 884 (-7.72%)
Mutual labels:  emoji
Opensource Socialnetwork
Open Source Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. It is available in 16 international languages.
Stars: ✭ 710 (-25.89%)
Mutual labels:  emoji
Jeelizweboji
JavaScript/WebGL real-time face tracking and expression detection library. Build your own emoticons animated in real time in the browser! SVG and THREE.js integration demos are provided.
Stars: ✭ 835 (-12.84%)
Mutual labels:  emoji
Conventional Changelog Angular Emoji
👍 Emoijis for the Angular Commit Guidelines with Emojis
Stars: ✭ 13 (-98.64%)
Mutual labels:  emoji
Electron Markdownify
📕 A minimal Markdown editor desktop app
Stars: ✭ 700 (-26.93%)
Mutual labels:  emoji
D3 Digest
SlackBot that watch channels looking for links and reactions, and generates digests based on those reactions
Stars: ✭ 15 (-98.43%)
Mutual labels:  emoji
Agemojikeyboard
Emoji Keyboard for iOS
Stars: ✭ 686 (-28.39%)
Mutual labels:  emoji
React Rewards
Package containing a few microinteractions you can use to reward your users for little things and make them smile!
Stars: ✭ 841 (-12.21%)
Mutual labels:  emoji
Awesome Typography
✏︎ Curated list about digital typography 🔥
Stars: ✭ 947 (-1.15%)
Mutual labels:  emoji
Vanilla Emoji Picker
Modern emoji picker. Super light 2kb gzipped, simple and no frameworks 😻
Stars: ✭ 20 (-97.91%)
Mutual labels:  emoji
Sodieremojikeyboardplus
支持自定义emoji表情,icon font , FontAwesome,斜体,超链接,粗体,下划线,字体,颜色,镂空字体等富文本
Stars: ✭ 14 (-98.54%)
Mutual labels:  emoji

node-emoji

NPM version (1.0.3) NPM Downloads Build Status Dependencies https://paypal.me/DanielBugl/9

simple emoji support for node.js projects

node-emoji example

Help wanted: We are looking for volunteers to maintain this project, if you are interested, feel free to contact me at [email protected]

Installation

To install node-emoji, you need node.js and npm. 🚀

Once you have that set-up, just run npm install --save node-emoji in your project directory. 🚢

You're now ready to use emoji in your node projects! Awesome! 🤘

Usage

var emoji = require('node-emoji')
emoji.get('coffee') // returns the emoji code for coffee (displays emoji on terminals that support it)
emoji.which(emoji.get('coffee')) // returns the string "coffee"
emoji.get('⏩') // `.get` also supports github flavored markdown emoji (http://www.emoji-cheat-sheet.com/)
emoji.emojify('I ❤️ ☕️!') // replaces all :emoji: with the actual emoji, in this case: returns "I ❤️ ☕️!"
emoji.random() // returns a random emoji + key, e.g. `{ emoji: '❤️', key: 'heart' }`
emoji.search('cof') // returns an array of objects with matching emoji's. `[{ emoji: '☕️', key: 'coffee' }, { emoji: ⚰', key: 'coffin'}]`
emoji.unemojify('I ❤️ 🍕') // replaces the actual emoji with :emoji:, in this case: returns "I ❤️ 🍕"
emoji.find('🍕') // Find the `pizza` emoji, and returns `({ emoji: '🍕', key: 'pizza' })`;
emoji.find('pizza') // Find the `pizza` emoji, and returns `({ emoji: '🍕', key: 'pizza' })`;
emoji.hasEmoji('🍕') // Validate if this library knows an emoji like `🍕`
emoji.hasEmoji('pizza') // Validate if this library knowns a emoji with the name `pizza`
emoji.strip('⚠️ 〰️ 〰️ low disk space') // Strips the string from emoji's, in this case returns: "low disk space".
emoji.replace('⚠️ 〰️ 〰️ low disk space', (emoji) => `${emoji.key}:`) // Replace emoji's by callback method: "warning: low disk space"

Options

onMissing

emoji.emojify(str, onMissing)

As second argument, emojify takes an handler to parse unknown emojis. Provide a function to add your own handler:

var onMissing = function (name) {
  return name;
});

var emojified = emoji.emojify('I :unknown_emoji: ⭐️ :another_one:', onMissing);
// emojified: I unknown_emoji ⭐️ another_one

format

emoji.emojify(str, onMissing, format)

As third argument, emojify takes an handler to wrap parsed emojis. Provide a function to place emojis in custom elements, and to apply your custom styling:

var format = function (code, name) {
  return '<img alt="' + code + '" src="' + name + '.png" />';
});

var emojified = emoji.emojify('I :unknown_emoji: ⭐️ :another_one:', null, format);
// emojified: I <img alt="❤️" src="heart.png" /> <img alt="☕️" src="coffee.png" />

Adding new emoji

Emoji come from js-emoji (Thanks a lot 👍). You can get a JSON file with all emoji here: https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json

To update the list or add custom emoji, clone this repository and put them into lib/emojifile.js. Then run npm run-script emojiparse in the project directory or node emojiparse in the lib directory. This should generate the new emoji.json file and output Done..

That's all, you now have more emoji you can use! 👏

Support / Donations

If you want to support node-emoji development, please consider donating (it helps me keeping my projects active and alive!):

Special Thanks

... to Dan Perkins (@Aesth3tical) for sponsoring this project via GitHub Sponsors!

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].