UNPKG

tribe

Version:

Tribe is a platform for building rich, powerful, highly scalable distributed HTML5 web and mobile systems.

15 lines (14 loc) 412 B
var storage = require('tribe.storage'), provider; module.exports = { initialise: function (entities, options) { return storage.open(entities, options).then(function (p) { provider = p; return provider; }) }, entity: function (name) { if (!provider) throw new Error("Not initialised"); return provider.entity(name); } }