lunicode-mirror

1.0.1 • Public • Published

Lunicode Mirror

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

mirror.encode(string) Replaces all chars with their equivalent but mirrored. So it turns this sentence: "Turtles all the way down." Into ".ᴎwob ʏɒw ɘʜƚ ||ɒ ꙅɘ|ƚɿuT" Obviously, if you mirror it again, it becomes normal again.

Decode

mirror.decode(string) Just a Ptr to the Encode function. It was already here when I got here (even though it was duplicate code), so I'll keep it for now.

Readme

Keywords

Package Sidebar

Install

npm i lunicode-mirror

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • zirror