Skip to content

jsupa/nodejs_emoji_variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Encode nodejs emoji variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published