How to use the ipfs.Buffer.from function in ipfs

To help you get started, we’ve selected a few ipfs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ipfs-shipyard / ipfs-dag-builder-vis / src / index.js View on Github external
fileReader.onload = async e => {
      rawFiles.push({ path: file.name, content: Buffer.from(e.target.result) })
      addAndRender()
    }
github ipfs-shipyard / ipfs-dag-builder-vis / src / App.js View on Github external
fileReader.onload = e => {
      setFiles(files.concat({ path: file.name, content: Buffer.from(e.target.result) }))
    }
    fileReader.readAsArrayBuffer(file)

ipfs

JavaScript implementation of the IPFS specification

Apache-2.0 OR MIT
Latest version published 1 year ago

Package Health Score

56 / 100
Full package analysis