fluki
v1.2.0
Published
Library for generating random variables of all types for testing.
Downloads
19
Readme
fluki
Library for generating random variables of all types for testing.
Installation
$ npm install --save fluki
Include in project
var fluki = require('fluki');
Generate a random string
//Default
fluki.string()
//Random string with a specific length x
fluki.string(x)
Generate a random integer
//Default
fluki.integer()
//Random integer between min and max
fluki.integer(min, max)
Generate a random array
//Default
fluki.array()
//Random array of x strings, integers, or objects
fluki.array(x, "string|str|integer|int|object|obj")
Generate a random object
//Default
fluki.object()
//Random object with x random key-value pairs
fluki.object(x)
License
MIT © Matthew Pfister