Socket
Book a DemoInstallSign in
Socket

then-levelup

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

then-levelup

Promise based leveldb interface

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 06 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts