lokijs save database indexed db
// SAVE : will save App/Key/Val as 'finance'/'test'/{serializedDb} var idbAdapter = new LokiIndexedAdapter('finance'); var db = new loki('test', { adapter: idbAdapter }); var coll = db.addCollection('testColl'); coll.insert({test: 'val'}); db.saveDatabase(); // could pass callback if needed for async complete
Source: techfort.github.io