1.2.0 • Published 12 months ago

leveldb-registry v1.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

leveldb-registry

Quality Gate Status Known Vulnerabilities

install it

  • npm
npm install leveldb-registry --save
  • yarn
yarn add leveldb-registry

use it

import { Identifiable, leveldbRegistry } from "leveldb-registry";

type User = Identifiable & {
  name: string;
};

const registry = leveldbRegistry<User>({
  localPath: ".example",
});

const user = await registry.add({ id: randomUUID(), name: "haz" });
const found = await registry.fetch(user.id);

const users = await registry.list();
const userIds = await registry.ids();
1.2.0

12 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago