random-functions
v1.0.2
Published
Javascript common functions
Downloads
2
Maintainers
Readme
Javascript function for random data
With this library you can get dummy/random data from functions
Installation
Use the package manager npm to install random-functions.
npm install random-functions --save
Usage
import randomF from 'random-functions';
#or
const randomF = require('random-functions');
var color = randomF.color(); # returns '#hascodeforcolor' e.g. #0E8F3B
var static_color = randomF.static_color(2); # 2 is index upto 280
var otp = randomF.otp(); #return random OTP code
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update the tests as appropriate.