npm.io
5.0.0 • Published 8 years ago

blockstack-content

Licence
—
Version
5.0.0
Deps
3
Size
4 kB
Vulns
2
Weekly
0

Example

const storage = storageDriver(); const notes = new MultiFileCollectionService({ type: "note", storage });

let publish = async () =>{
  await notes.createItem({
    "txt": "im a note!"
  }).then( async (res)=>{
    const item = await notes.getItem(res.id)
    console.log('get on item',item)
  });
  let items = await notes.getItems();
  console.log('get all items',items)
}
publish()

//