Skip to content

rottytooth/FatFingerJS

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FatFingerJS

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?

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

Why?

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.

Set-up if you'd like to contribute:

npm install -g grunt-cli

npm install grunt --save-dev

npm install grunt-contrib-jshint --save-dev

npm install grunt-contrib-nodeunit --save-dev

npm install grunt-contrib-concat --save-dev

npm install esprima

To update fatfinger.js:

grunt concat

To run the tests:

grunt nodeunit

Releases

No releases published

Packages

No packages published