Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 08ef17a

Browse files
committed
update docs
1 parent cd16538 commit 08ef17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const IPFS = require('ipfs')
3131
const OrbitDB = require('orbit-db')
3232

3333
const ipfs = new IPFS()
34-
const orbitdb = new OrbitDB(ipfs)
34+
const orbitdb = await OrbitDB.createInstance(ipfs)
3535
```
3636

3737
Get a key-value database and add an entry to it:
3838

3939
```javascript
40-
const kv = orbitdb.kvstore('settings')
40+
const kv = await orbitdb.kvstore('settings')
4141
kv.put('volume', '100')
4242
.then(() => {
4343
console.log(kv.get('volume'))

0 commit comments

Comments
 (0)