0.1.0 • Published 8 years ago

rndoam v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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)

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago