Top 5 Funny JavaScript libraries
Tags: javascript, programming, libraries
Published: 2021-03-24 09:40:19

1\. [Brototype](https://github.com/letsgetrandy/brototype)
----------------------------------------------------------

Brototype is a funny JavaScript library that's also quite useful. It can be described as an **antidote to the "undefined is not a function"** error, which occurs when attempting to call a value a function, where the value is not a function. With Brototype, you can easily test nested members, ensure that multiple nested members exist by passing an array of paths or using a callback, fetch nested members, create nested members, call nested functions, handle exceptions, check for undefined, get a list of object keys, extend objects, and more. Installing Brototype is a piece of cake because this fun but the useful library is available via npm.

2\. [Thanos JS](https://thanosjs.org/)
--------------------------------------

Have you ever wished to wear the infinity gauntlet and have the power to shape the universe with a snap of your fingers? Thanos JS gives you a taste of this power, allowing you to reduce the file size of your project down to 50% with a simple command. But instead of achieving this impressive feat by some clever JavaScript magic and advanced optimization techniques, Thanos JS simply randomly deletes half of your project files. Needless to say, this JavaScript tool isn't intended for serious use. It was created as a joke, and that's all it is.

3\. [Cowsay](https://github.com/piuccio/cowsay)
-----------------------------------------------

Originally written in Perl by Tony Monroe, Cowsay is a talking cow that can say any words you put into her mouth. Just don't be disappointed when you find out that Cowsay doesn't really speak. Instead, it outputs the words you want it to say in the form of text displayed in the terminal or your web browser. What's the point of a talking cow, you ask? Well, it can make your screenshots more interesting, which is how most people use them. Even if you don't actually end up using Cowsay all that often, installing it and giving it a try is a rite of passage for Unix users, who have been having fun with it for over 20 years.

4\. [FuckItJS](https://github.com/mattdiamond/fuckitjs)
-------------------------------------------------------

All programmers get tired of fixing bugs and pondering the meaning of cryptic error messages. FuckItJS is a JavaScript library that can make all bugs and error messages instantly go away. How? By repeatedly compiling your code, detecting errors, and slicing those lines out of the script through a process known as Eval-Rinse-Reload-And-Repeat.

5\. [Elevator.js](https://github.com/tholman/elevator.js?files=1)
-----------------------------------------------------------------

Elevator.js is a stand-alone funny JavaScript library that lets you add a "back to top" button that behaves like a real elevator, complete with elevator music to make the smooth scrolling feel to the topless boring. Since Elevator.js is a simple library that handles only the audio management and the scroll functionality, you can easily customize it to fit your needs and make it less funny and more useful.