$ npm i better-outcome
-
const { output, sum, generate, getImage } = require('better-outcome')
This will help pull the functions a lot easier!
See all the features and how to use them below!
-
output.log("your input here");
display a console message in green -
output.warn("your input here");
display a console message in yellow -
output.error("your input here");
display a console message in red -
output.dateNow();
display your local time in the console
-
generate.ranInt(int, int)
generate a random number from the first int to the second int -
generate.ranGif()
generate a random gif -
generate.ranGif_anime()
generate a random anime gif -
generate.ranChar()
generate a random character from the alphabet -
generate.ranString(int)
generare a random string of characters by entering a number of characters you want in your string!
-
sum.add(int, int)
add 2 numbers you provide together and you can either send the output in a console message or as another value in a "const" -
sum.subtract(int, int)
subtract 2 numbers you provide together and you can either send the output in a console message or as another value in a "const" -
sum.multiply(int, int)
multiply 2 numbers you provide together and you can either send the output in a console message or as another value in a "const" -
sum.divide(int, int)
divide 2 numbers you provide together and you can either send thr output in a console message or as another value in a "const"
-
getImage.bgBlack1
store an image either in a console.log message or a constant/variable -
getImage.bgBlack2
store an image either in a console.log message or a constant/variable -
getImage.bgBlack3
store an image either in a console.log message or a constant/variable -
getImage.bgBlue1
store an image either in a console.log message or a constant/variable -
getImage.bgBlue2
store an image either in a console.log message or a constant/variable -
getImage.bgBlue3
store an image either in a console.log message or a constant/variable