Skip to content

then/then-levelup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1cefc42 · Jan 6, 2017

History

9 Commits
Jan 20, 2015
Jan 20, 2015
Jan 20, 2015
Dec 23, 2015
Sep 8, 2015
Sep 8, 2015
Jan 20, 2015

Repository files navigation

then-levelup

Promise based leveldb interface

Build Status Dependency Status NPM version

Installation

npm install then-levelup

Usage

// having run npm install level
var db = require('then-levelup')(require('level')('./mydb'));

// use like level-up except APIs return promises instead of taking callbacks
db.put('foo', 'bar').then(function () {
  return db.get('foo');
}).then(function (value) {
  assert(value === 'bar');
}).done(function () {
  console.log('tests passed');
});

License

MIT