Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heapwolf/level-mget

get multiple values from leveldb
https://github.com/heapwolf/level-mget

Last synced: 25 days ago
JSON representation

get multiple values from leveldb

Awesome Lists containing this project

README

        

# SYNOPSIS
get multiple keys leveldb, returns a `Map` of errors and values.

# USAGE
```js
const mget = require('level-mget')
```

```js
mget(db, ['foo', 'bar'], function(errors, values) {
errors // => Map()
values // => Map()
});
```

```js
const [errors, values] = await mget(['foo', 'bar'])
errors // => Map()
values // => Map()
```