# xpdb

> A simplified persistant data storage solution built on LevelDB

Latest version **1.0.5** (published 2020-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install xpdb
pnpm add xpdb
yarn add xpdb
bun add xpdb
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-05-03 |
| First published | 2017-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rayzr522 |
| Maintainers | rayzr |

## Links

- npm: https://www.npmjs.com/package/xpdb
- Repository: https://github.com/Rayzr522/xpdb
- Homepage: https://github.com/Rayzr522/xpdb#readme
- Issues: https://github.com/Rayzr522/xpdb/issues
- npm.io page: https://npm.io/package/xpdb

## Dependencies (1)

- [level](https://npm.io/package/level.md) ^6.0.1

## Recent versions

- 1.0.5 (latest) — 2020-05-03
- 1.0.4 — 2019-06-28
- 1.0.3 — 2018-07-25
- 1.0.2 — 2017-05-22
- 1.0.1 — 2017-02-21
- 1.0.0 — 2017-02-21

## README

# XPDB

> Ultra-fast persistent database solution with a simple to use API

XPDB is a hyper-simplified wrapper around [level](=https://github.com/Level/level), which is a wrapper around [LevelUP](https://github.com/rvagg/node-levelup), which is a wrapper around [LevelDB](https://github.com/google/leveldb). Sounds complicated, right? Nope.

**XPDB** is a super easy to use database system that is just like using a Map. Data is stored persistently, quickly, and all methods use `Promise`s, which means you can use it with the fancy new `async`/`await` features! It can store any kind of data, including `JSON`.

## Installation

```bash
npm install --save xpdb
```

## Usage

```javascript
var XPDB = require('xpdb');
var db = new XPDB('./myDB');

// Promises
db.put('some.key', 'Hello world!').then(() => {
	db.get('some.key').then(value => {
		console.log(value);
        // => Hello world!
    }).catch(console.error);
}).catch(console.error);

// async/await
try {
    await db.put('some.key', 'Hello world!');
	console.log(await db.get('some.key'));
	// => Hello world!
} catch (err) {
	console.error(err);
}
```

## Methods

> _Coming soon, for now there are JavaDocs, and it should be pretty self-explanatory._

## Join Me
[![Discord Badge](https://github.com/Rayzr522/ProjectResources/raw/master/RayzrDev/badge-small.png)](https://discord.io/rayzrdevofficial)

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