rndoam
v0.1.0
Published
Generate test fixture
Downloads
73
Readme
Rndoam
Texture generation tools
Install
npm install --save rndoam
sring(length: Number)
rndoam.string(10)
number(min: Number, max: Number)
rndoam.number(10, 100)
array(length: Number)
rndoam.array(100)
object(fieldCount: Number, allowNested: Boolean)
rndoam.object(10, true)
collection(map: Object, length: Number)
rndoam.collection({
id: () => rndoam.number(),
text: () => rndoam.string(),
static: 'static'
}, 5) // => [{id: Number, text: String, static: 'static'}, ...]
noop()
rndoam.noop()
With immutablejs
npm install --save immutable
Import
import rndoam from 'rndoam/lib/withImmutable'