# @nlibs/kvlite

> kvlite is an in-memory key value store with an sqlite backend.

Latest version **0.0.10** (published 2020-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nlibs/kvlite
pnpm add @nlibs/kvlite
yarn add @nlibs/kvlite
bun add @nlibs/kvlite
```

## 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.0.10 |
| Published | 2020-11-22 |
| First published | 2020-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nlibs |

## Links

- npm: https://www.npmjs.com/package/@nlibs/kvlite
- npm.io page: https://npm.io/package/@nlibs/kvlite

## Dependencies (1)

- [better-sqlite3](https://npm.io/package/better-sqlite3.md) 7.1.1

## Recent versions

- 0.0.10 (latest) — 2020-11-22
- 0.0.9 — 2020-11-22
- 0.0.8 — 2020-11-17
- 0.0.7 — 2020-11-06
- 0.0.6 — 2020-11-06
- 0.0.5 — 2020-11-06
- 0.0.4 — 2020-11-06
- 0.0.3 — 2020-11-06
- 0.0.2 — 2020-11-06
- 0.0.1 — 2020-11-06

## README

# kvlite

kvlite is an in-memory key value store with an sqlite backend.

# Installation

	npm install kvlite

# API

kvlite has 3 call 

- constructor(path: string, oncomplete)
- get(key: string, oncomplete(value: string)=>void);
- set(key: string, value: string);

## Example

	var KVLITE = require("kvlite");
	var db = new KVLITE.kv("path");
	db.set("key", "value");
	db.get("key", function(value)
	{
		if (typeof value == 'undefined')
		{
			//  key not found
		}
	});

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