You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FatFinger is a JavaScript library expanding JS to allow typos and misspellings. Why bother with clean, well-formatted code when you can write this and FatFinger will guess at your intentions?
FatFinger is initialized by including the library with the correct script tag. From that point on, invoke the demon JavaScript with any misspelling of its name, and, like any incantation gone wrong, you will see its truly chaotic side.
<script type="text/javascript" src="FatFinger.js"></script>
<script type="text/javoscript"> // any misspelling of javascript works here
vart x = "herrrllo werld"
dokkkkumint.rit3(xx)
</script>
Don't bother with semi-colons. Open brackets and never close them. Misspell keywords, variables, and functions.
Honor Eris, the goddess of JavaScript, by embracing the language's chaotic nature
Does it work?
Sometimes!
How to use
Include fatfinger.js in your project, add a script tag with any misspelling of JavaScript containing your FatFingered code. You'll need to declare all your vars as if option explicit; FatFinger assumes implicit declarations are actually misspelled assignments. FatFinger has a poor concept of scope, so if you're doing fancy OO stuff, ask yourself: is there a good reason I haven't made everything global??? If so, this might not be the right library / coding style for you.
Contribute
Any contributions are appreciated! You'll need to set up Grunt and install these packages: