rndoam

0.1.0 • Public • Published

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    5
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i rndoam

Weekly Downloads

6

Version

0.1.0

License

MIT

Last publish

Collaborators

  • galkinrost