3.5.2 • Published 4 years ago
better-output v3.5.2
Better Output
Install
$ npm i better-output
variables you could add
const { output, sum, generate, getImage } = require('better-output')This will help pull the functions a lot easier!
Features
See all the features and how to use them below!
Output
output.log("your input here");display a console message in greenoutput.warn("your input here");display a console message in yellowoutput.error("your input here");display a console message in redoutput.dateNow();display your local time in the console
Generate
generate.ranInt(int, int)generate a random number from the first int to the second intgenerate.ranGif()generate a random gifgenerate.ranGif_anime()generate a random anime gifgenerate.ranChar()generate a random character from the alphabetgenerate.ranString(int)generare a random string of characters by entering a number of characters you want in your string!
Sum
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"
Get Image
getImage.bgBlack1store an image either in a console.log message or a constant/variablegetImage.bgBlack2store an image either in a console.log message or a constant/variablegetImage.bgBlack3store an image either in a console.log message or a constant/variablegetImage.bgBlue1store an image either in a console.log message or a constant/variablegetImage.bgBlue2store an image either in a console.log message or a constant/variablegetImage.bgBlue3store an image either in a console.log message or a constant/variable