1.0.1 • Published 8 years ago

lunicode-bent v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

Lunicode bent

forthebadge forthebadge NPM

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

Usage

Encode

bent.encode(string) Replaces all chars with their equivalent but bented. So it turns this sentence: "Nolite te bastardes carborundorum." Into "ហօӀìէҽ էҽ ҍąʂէąɾժҽʂ çąɾҍօɾմղժօɾմʍ" Obviously, if you bent it again, it becomes normal again.

Decode

bent.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.