saywhat
v1.0.1
Published
💬 a library that replaces alphabetical characters with similarly shaped symbols
Downloads
5
Readme
saywhat
💬 a library that replaces alphabetical characters with similarly shaped symbols
If you are interesting in using this in the browser please make sure to set <meta charset="utf-8">
.
For the best experience encode and decode using this library to ensure properly constructed strings. Javascript has a unicode problem and it can be solved with tooling!
Usage
encode
const SayWhat = require('saywhat');
SayWhat.encode('hello'); // h👌ll👩🏼🌾
decode
const SayWhat = require('saywhat');
SayWhat.decode('h👌ll👩🏼🌾'); // hello
It works with numbers and letters!
const SayWhat = require('saywhat');
SayWhat.encode('12345 I see you'); // 123🕵️♀️5 ↔️ 👨👨👧👦📑👁 y👩🏻🚒u
SayWhat.decode('123🕵️♀️5 ↔️ 👨👨👧👦📑👁 y👩🏻🚒u'); // 12345 i see you
What is this?
This takes all known unicode characters and compares them against emojis and other symbols to find which emojis or characters most look alike. So for example if you wanted to see what hello would look like in encoded it might generate h👌ll👩🏼🌾
.
Contributions
help with the comparing of the likeness of symbols!
npm run compile;
npm run build;
npm test;
npm run coverage;