Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 968 Bytes

File metadata and controls

63 lines (45 loc) · 968 Bytes

Emoji encoder

Buy Me A Coffee

Node js encoder / decoder what change all emoji variables to valid variabler.

Features!

  • Replace emojis variables to emoji hex.

To Do

  • Ignore emoji in string.
  • Ignore emoji in comments.

Installation

Project requires Node.js v 10+ to run.

$ npm install

Edit index.js

$ npm run start

Commands

Encode emoji to hex index.js

$ npm run encode

Decode emoji hex to emoji index.js

$ npm run decode

Encode emoji to hex and run index.js

$ npm run start

Preview

index.js before encode

var 
	🤪 = 'Hello',
	🚀 = 'world';

console.log(🤪 + 🚀)

index.js after encode

var 
	e_1f92a = 'Hello',
	e_1f680 = 'world';

console.log(e_1f92a + e_1f680)