{"size": 549, "ext": "js", "max_stars_repo_path": "examples/02-get-item.js", "max_stars_repo_name": "chilts/modb-dyno-leveldb", "max_stars_repo_stars_event_min_datetime": "2019-06-12T19:35:25.000Z", "max_stars_repo_stars_event_max_datetime": "2019-06-12T19:35:25.000Z", "max_issues_repo_path": "examples/02-get-item.js", "max_issues_repo_name": "chilts/modb-dyno-leveldb", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/02-get-item.js", "max_forks_repo_name": "chilts/modb-dyno-leveldb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.6, "max_line_length": 88, "alphanum_fraction": 0.650273224}
// use dyno-leveldb and open a new datastore
var dyno = require('../dyno-leveldb.js');

// open a new database
var db = dyno('/tmp/users');

// get the item back out
db.getItem('chilts', function(err, item, meta) {
    // gives { nick : 'chilts', name : 'Andy Chilton', email : 'andychilton@gmail.com' }
    console.log('There have been ' + meta.changes + ' changes to this item');
    console.log('The last change occurred at ' + meta.timestamp);
    console.log('The hash for these changes are ' + meta.hash);
    console.log('Item: ', item);
});
