synopsis-client
v0.8.1
Published
A client that connects to a synopsis-backend for simple data storage
Downloads
16
Readme
Synopsis Client
Provides a simple facade hiding all of the complexity regarding offline storage and synchronization.
Usage
var store = new SynopsisClient('storeName');
store.on('change', function(json) {
console.log(JSON.stringify(json));
});
store.edit(function(doc) {
(doc.times = doc.times || []).push(Date.now());
});
store.patch([{op: 'add', path: '/times/0', value: Date.now()}]);