Emoji Encoding Decoding

Golap Hazarika
2 min readJan 15, 2021

--

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install emoji_encoding_decoding

Load emoji_encoding_decoding as a CommonJS Module

const  emojiLib = require('emoji_encoding_decoding');// Example 1var  x = emojiLib.EmojiEncode('πŸ˜ƒ');
console.log(x);
//Output: \uD83D\uDE03

var y = emojiLib.EmojiDecode('\uD83D\uDE03');
console.log(y);
//Output: πŸ˜ƒ
// Example 2var x = emojiLib.EmojiEncode('Hi i am πŸ˜ƒ');
console.log(x);
//Output: Hi i am \uD83D\uDE03
var y = emojiLib.EmojiDecode('Hi i am \uD83D\uDE03');
console.log(y);
//Output: Hi i am πŸ˜ƒ

Load emoji_encoding_decoding as a transpiler ES6/UMD module

import { EmojiEncode, EmojiDecode } from  'emoji_encoding_decoding';// Example 1let  x = EmojiEncode('πŸ˜ƒ')
console.log(x)
//Output: \uD83D\uDE03
let y = EmojiDecode('\uD83D\uDE03')
console.log(y);
//Output: πŸ˜ƒ
// Example 2let x = EmojiEncode('Hi i am πŸ˜ƒ')
console.log(x)
//Output: Hi i am \uD83D\uDE03
let y = EmojiDecode('Hi i am \uD83D\uDE03')
console.log(y);
//Output: Hi i am πŸ˜ƒ

Use with your existing framework

  • Angular JS
  • Angular
  • Laravel
  • CakePHP
  • React JS
  • Vue JS
  • Yii2
  • Yii1
  • WordPress
  • Symfony
  • Lumen
  • Reactive
  • Javascript based framework

Browser Support

At present, we officially aim to support the following browsers:

  • Chrome
  • Edge
  • Firefox
  • Safari
  • Opera
  • Internet Explorer 11
  • Safari iOS
  • Chrome, Firefox, and Default Browser Android

Technical Support or Questions

If you have questions or need help integrating the editor please contact me at golapyd@gmail.com instead of opening an issue.

Buy me a coffee

--

--

Golap Hazarika
Golap Hazarika

Written by Golap Hazarika

Team Lead - Frontend at Vantage Circle

No responses yet