0.2.0 • Published 4 years ago

weird.js v0.2.0

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

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

0.1.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

1.0.0

4 years ago