better-outcome

1.0.1 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i better-outcome

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    16 kB

    Total Files

    17

    Last publish

    Collaborators

    • doggo123