$ npm install abstract-random-accessBase class for random access stores, such as
.open()edopen and close eventsvar Abstract = require('abstract-random-access')
var inherits = require('inherits')
var Store = function () {
Abstract.call(this)
}
inherits(Store, Abstract)
Store.prototype._read = function (offset, length, callback) {
process.nextTick(function () {
callback(null, Buffer('ohai'))
})
}
MIT