Emoji Encoding Decoding
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\uDE03var 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\uDE03let y = EmojiDecode('\uD83D\uDE03')
console.log(y);
//Output: π// Example 2let x = EmojiEncode('Hi i am π')
console.log(x)
//Output: Hi i am \uD83D\uDE03let 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.