1.0.1 • Published 2 years ago

better-outcome v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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 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

  • 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

  • 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/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
1.0.1

2 years ago

1.0.0

2 years ago

3.5.2

2 years ago