Skip to content

rijs/data

Repository files navigation

Ripple | Data

Coverage Status Build Status

Extends core to register objects and arrays. It also enables per-resource change listeners on those resources, as well versioning info.

ripple('data', [])

All data resources will be emitterified:

// instead of: ripple.on('change', function(name, change){ .. })
ripple('name').on('change', function(change){ .. })
ripple('name').once('change', function(change){ .. })
ripple('name').emit('change')

All data resources will be initialised with versioning info:

ripple('name').log