weird.js
v0.2.0
Published
weird.js is an NPM package used for functions that normally take a long time such as random jokes and 8-ball.
Downloads
9
Readme
What is weird.js?
weird.js is an NPM package used for functions that normally waste your time when you code them by scratch.
Installation
npm i weird.js
Functions
These can be updated at any time, be on the lookout!
Fun
getAJoke(jokeType); - defaults to dad joke param: jokeType | dad, chuck-norris shake8ball(); - randomly picks an 8ball message from an array
Math
add(x, y); - adds x and y together param: x, y | both need to be integers sub(x, y); - subtracts x and y param: x, y | both need to be integers multiply(x, y); - multiplies x and y param: x, y | both need to be integers divide(x, y); - divides x and y param: x, y | both need to be integers sqrt(x); - finds square root of x param: x | needs to be an integer round(x); - rounds x either up or down param: x | needs to be an integer rand(); - returns a random number param: x, y | needs to be an integer