# bkjs-leveldb

> LevelDB support for node.js and backendjs

Latest version **0.1.0** (published 2015-10-15) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install bkjs-leveldb
pnpm add bkjs-leveldb
yarn add bkjs-leveldb
bun add bkjs-leveldb
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-10-15 |
| First published | 2015-10-15 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | Vlad Seryakov |
| Maintainers | veryakov |

## Links

- npm: https://www.npmjs.com/package/bkjs-leveldb
- Repository: https://github.com/vseryakov/bkjs-debug
- Homepage: https://github.com/vseryakov/backendjs
- Issues: https://github.com/vseryakov/bkjs-debug/issues
- npm.io page: https://npm.io/package/bkjs-leveldb

## Recent versions

- 0.1.0 (latest) — 2015-10-15

## README

# LevelDB module for node and backendjs

# Usage

## Database class
- `new Database(file, options, callback)` - create new database object
- Properties:
  - open - 1 if the db is open
  - name - the database file name
- Methods:
  - close - close the database
  - drop - drop the database file
  - get(key, callback) - return value for the given key
  - put(key, value, flags, callback) - store a value for the given key
  - incr(key, num, flags, callback) - increment a value by a number
  - del(key, value, callback]) - delete a key
  - select(start, end, flags, callback]) - return list of matching records
    The flags are:
     - desc - 1 to return in descendent order
     - begins_with - 1 if match by beginning of the start key
     - count - number of records to return
  - batch(list, flags, callback) - put several records at once in a batch,
    list item can be a string to delete or an array with 2 items to put

- Options or flags
  - Read options
    - fill_cache - 1 or 0
    - verify_checksum - 1 or 0
  - Write options
    - sync - 1 or 0

# Author

Vlad Seryakov

---
_Source: https://npm.io/package/bkjs-leveldb · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
