timestreamdb.js
function TimestreamDB(instance, options) {
  if (!(this instanceof TimestreamDB))
    return new TimestreamDB(instance, options)

  var db = Version(instance, options)

  db.ts = function (key, options) {
    var opts = {reverse: true}

    if (options.start) opts.minVersion = options.start
    if (options.until) opts.maxVersion = options.until
    return ts(db.versionStream(key, opts).pipe(toTimestream()))
  }
  db.timeStream = db.ts

  return db
}
function TimestreamDB(instance, options) {
  if (!(this instanceof TimestreamDB))
    return new TimestreamDB(instance, options)

  var db = Version(instance, options)

  db.ts = function (key, options) {
    var opts = {reverse: true}

    if (options.start) opts.minVersion = options.start
    if (options.until) opts.maxVersion = options.until
    return ts(db.versionStream(key, opts).pipe(toTimestream()))
  }
  db.timeStream = db.ts

  return db
}
function TimestreamDB ( instance , options ) { if ( ! ( this instanceof TimestreamDB ) ) return new TimestreamDB ( instance , options ) var db = Version ( instance , options ) db . ts = function ( key , options ) { var opts = { reverse : true } if ( options . start ) opts . minVersion = options . start if ( options . until ) opts . maxVersion = options . until return ts ( db . versionStream ( key , opts ) . pipe ( toTimestream ( ) ) ) } db . timeStream = db . ts return db }
Create a new TimestreamDB
@param {LevelUp} instance   A LevelUp instance
@param {object} options Configuration options for level-version
Create a new TimestreamDB