Promise'd LevelUp.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test do not throw when substituting phantom methods Oct 10, 2016
.gitignore initial commit Jul 5, 2013
.jshintrc add a jshintrc Jul 5, 2013
.travis.yml
README.md use the regular filename for the readme Jun 27, 2015
index.js include open/close methods even if they're not in the manifest Jul 19, 2015
package.json 2.1.1 Oct 10, 2016
substitute.js

README.md

travis dep npm

level-promise

Promised LevelUp.

Installation

$ npm install level-promise

Warning

At the application level, promises vs callbacks is yours to choose. If you use this in a LevelUp extension that isn't explicitly about promises, I will find you and I will destroy you. Play nice with the rest, use callbacks for your extension. If your extension works with level-manifest, it'll work with this.

Usage

LevelPromise(db) (or LevelPromise.install(db), if that suits your tastes) and you're off! Every method marked as async by level-manifest will now return a promise when you don't pass it a callback. It recurses into sublevels.

License

MIT