rndoam

Generate test fixture

Usage no npm install needed!

<script type="module">
  import rndoam from 'https://cdn.skypack.dev/rndoam';
</script>

README

Rndoam Build Status

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'

immutableCollection(map: Object, length: Number)

list(length)

map(length)