oculus

Oculus is a tool to simplify object transition, and communication of state

npm install oculus
7 downloads in the last week
29 downloads in the last month

oculus

oculus is a tool to simplify object transition, and communication of state (sorta observer pattern) through the use of named objects (unique id)

cold = new StateVal('cold','ooze',{})

// funky listens to changes in cold object
funky = new StateVal('funky', { 'cold': cold} )

// update cold state, and inform its listeners
cold.inform({ val: 'medina' })
// 'cold going to return true pre 'ooze' funky->cold-> 'medina'

license: BSD

npm loves you