blockstack-content

5.0.0 • Public • Published

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()

//

/blockstack-content/

    Package Sidebar

    Install

    npm i blockstack-content

    Weekly Downloads

    1

    Version

    5.0.0

    License

    none

    Unpacked Size

    4.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • darkua