more-functions.js
v0.0.10-b57
Published
Easy to use. Extra Functions for Node.js
Readme
more-functions.js
A NPM that has extra functions for your Projects
Installation
npm install more-functions.jsExample:
const functions = require('more-functions.js')
const generateColor = functions.randomColor()
console.log(generateColor.name)
Output:
BLUEUsage:
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
