Pampy.js is a tiny, reasonably fast, and often makes your code more readable, and easier to reason about.
The pattern matching is basically a
switch on steroids, you can create powerful conditions such based on
Object properties or
Array content without manipulating the
formatter.js is a library to format user input to match a specified pattern. Credit card, phone number, currency and zip code form formatting etc...
Also there is a jQuery wrapper version too.