Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var mmm = require('multi-master-merge');
var leveljs = require('level-js');
var levelup = require('levelup');
var lup = levelup('invoicer', { db: leveljs });
var db = mmm(lup, {encoding: 'json'});
db.put('a', {}, function() {
db.get('a', function(err, val) {
console.log(val);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.