0.1.0 • Published 10 years ago
rndoam v0.1.0
Rndoam 
Texture generation tools
Install
npm install --save rndoamsring(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 immutableImport
import rndoam from 'rndoam/lib/withImmutable'