This repository was archived by the owner on Sep 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ const IPFS = require('ipfs')
3131const OrbitDB = require (' orbit-db' )
3232
3333const ipfs = new IPFS ()
34- const orbitdb = new OrbitDB (ipfs)
34+ const orbitdb = await OrbitDB . createInstance (ipfs)
3535```
3636
3737Get 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' )
4141kv .put (' volume' , ' 100' )
4242 .then (() => {
4343 console .log (kv .get (' volume' ))
Original file line number Diff line number Diff line change 11{
22 "name" : " orbit-db-kvstore" ,
3- "version" : " 1.5.0-rc3 " ,
3+ "version" : " 1.5.0" ,
44 "description" : " Key-Value Store for orbit-db" ,
55 "main" : " src/KeyValueStore.js" ,
6- "homepage" :" https://github.com/orbitdb/orbit-db-kvstore" ,
7- "bugs" :" https://github.com/orbitdb/orbit-db-kvstore/issues" ,
6+ "homepage" : " https://github.com/orbitdb/orbit-db-kvstore" ,
7+ "bugs" : " https://github.com/orbitdb/orbit-db-kvstore/issues" ,
88 "scripts" : {
99 "test" : " echo \" Error: no test specified\" && exit 1"
1010 },
11- "keywords" :[
11+ "keywords" : [
1212 " orbit-db" ,
1313 " orbitdb" ,
1414 " kv" ,
1515 " key-value" ,
1616 " kv-store"
1717 ],
1818 "author" : " Haad" ,
19- "contributors" :[
19+ "contributors" : [
2020 " haadcode" ,
2121 " greenkeeperio-bot" ,
2222 " shamb0t" ,
2626 ],
2727 "license" : " MIT" ,
2828 "dependencies" : {
29- "orbit-db-store" : " next "
29+ "orbit-db-store" : " ~2.6.0 "
3030 }
3131}
You can’t perform that action at this time.
0 commit comments