From fc7e703f9bb2862ae753a7aad32d46c478e1941a Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Thu, 29 Feb 2024 18:59:01 +0000 Subject: [PATCH] docs: call createOrbitDB correctly. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index baac1e9..ffa1390 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # @orbitdb/ordered-keyvalue-db -Ordered keyvalue database type for orbit-db. +Ordered keyvalue database type for OrbitDB. [![Tests](https://github.com/orbitdb/ordered-keyvalue-db/actions/workflows/run-test.yml/badge.svg?branch=main)](https://github.com/orbitdb/ordered-keyvalue-db/actions/workflows/tests.yml) [![codecov](https://codecov.io/gh/orbitdb/ordered-keyvalue-db/graph/badge.svg?token=7OZK4BJDej)](https://codecov.io/gh/orbitdb/ordered-keyvalue-db) @@ -14,13 +14,13 @@ A `KeyValue` database where you can move entries around. Ideal for situations wh ## Examples ```ts -import { createOrbit } from "@orbitdb/core"; +import { createOrbitDB } from "@orbitdb/core"; import { registerOrderedKeyValue } from "@orbitdb/ordered-keyvalue-db"; // Register database type. IMPORTANT - must call before creating orbit instance ! registerOrderedKeyValue(); -const orbit = await createOrbit({ ipfs }) +const orbit = await createOrbitDB({ ipfs }) const db = await orbit.open({ type: "ordered-keyvalue" });