lunicode-bubbles

1.0.1 • Public • Published

Lunicode Bubbles

forthebadge forthebadge NPM

Provides a mirror effect for certain characters in strings, so they seem they are "mirrored". This is mainly for testing, emergency purposes (when you dont want to resort to css transforms.) or art.

Usage

Encode

bubbles.encode(string) Replaces all chars in string with their bubbled equivalent. So it turns this sentence: "May the odds be ever in your favour" Into "Ⓜⓐⓨ ⓣⓗⓔ ⓞⓓⓓⓢ ⓑⓔ ⓔⓥⓔⓡ ⓘⓝ ⓨⓞⓤⓡ ⓕⓐⓥⓞⓡ". You have to use the decode function to remove the bubbles..

Decode

bubbles.decode(string) Reverses the effect of encode. So it turns Ⓜⓐⓨ ⓣⓗⓔ ⓞⓓⓓⓢ ⓑⓔ ⓔⓥⓔⓡ ⓘⓝ ⓨⓞⓤⓡ ⓕⓐⓥⓞⓡ back to "May the odds be ever in your favour".

Package Sidebar

Install

npm i lunicode-bubbles

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • zirror