0.0.14 • Published 1 year ago

lexi-ts v0.0.14

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Lexi-ts

a typescript/javascript library for interacting with LexiDB, an in-memory data structure database.

Install

npm

npm i lexi-ts

pnpm

pnpm add lexi-ts

yarn

yarn add lexi-ts

Usage

import { LexiClient } from "lexi-ts";

async function example() {
    let client = new LexiClient("<addr>", <port>);
    client.connect();
    let setResult = await client.set("foo", "bar");
    console.log(setResult); // "OK"
    let getResult = await client.get("foo");
    console.log(getResult);
    let delResult = await client.del("foo");
    console.log(delResult);
    client.close();
}

example()

for a more thorough example, see examples/main.js

0.0.14

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago