better-outcome
v1.0.1
Published
npm package to make the console output more aesthetic and readable
Downloads
5
Readme
Better Output
Install
$ npm i better-outcome
variables you could add
const { output, sum, generate, getImage } = require('better-outcome')
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.bgBlack1
store an image either in a console.log message or a constant/variablegetImage.bgBlack2
store an image either in a console.log message or a constant/variablegetImage.bgBlack3
store an image either in a console.log message or a constant/variablegetImage.bgBlue1
store an image either in a console.log message or a constant/variablegetImage.bgBlue2
store an image either in a console.log message or a constant/variablegetImage.bgBlue3
store an image either in a console.log message or a constant/variable