entrepot-kv
v1.3.0
Published
<p align="center"><img src="https://share.surf/uploads/f30d6f84-3f3c-4bbf-8cf9-3bbdc7dc1d1e" width="300" /></p> <h1 align="center">Entrepot – easy, self-contained KV storage.</h1>
Readme
Usage
1. Setting a value
import { set } from "entrepot-kv";
await set("animal", "cat");Getting a value
import { get } from "entrepot-kv";
const value = await get("animal");
console.log(value); // "cat"Deleting a value
import { remove } from "entrepot-kv";
await remove("animal");Checking a key exists
import { exists } from "entrepot-kv";
const valueExists = await exists("animal");
console.log(valueExists); // trueListing all keys
import { keys } from "entrepot-kv";
const keyList = await keys();
console.log(keyList); // ["animal"]