npm.io
0.0.10-b57 • Published 5 years ago

more-functions.js

Licence
MIT
Version
0.0.10-b57
Deps
0
Size
5 kB
Vulns
0
Weekly
0

more-functions.js


A NPM that has extra functions for your Projects

Installation

npm install more-functions.js

Example:

const functions = require('more-functions.js')
const generateColor = functions.randomColor()
console.log(generateColor.name)

Output:

BLUE

Usage:

const functions = require('more-functions.js')

functions.add(9, 9)// Add values
functions.sub(9, 9)// subtract values
functions.multi(3, 3)// multiply values
functions.divide(9, 3)// divide values
functions.random(['word1', 'word2'])// randomize the words
functions.randomInt(9) // random number to the max value(randonInt(max value))
functions.randomColor // Random Color. randomColor.name for the color name or randomColor.code for the color hex code
functions.allColors // All colors list use to generate one of them