This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Description
According to the API spec, you're supposed to pass a node Buffer, a node Readable stream, or an object containing one of those to the ipfs.files.add method. However, this project advertises the ability to use the implementation by including a <script> tag:
<script src="https://unpkg.com/ipfs/dist/index.min.js"></script>
If you do include that tag, you get a global Ipfs object, and you can indeed start up a node and go online. But since in the global namespace there is no Buffer or Readable stream implementation, what are you supposed to pass to ipfs.files.add? It would seem to be requiring types that can't be created outside it's fancy webpack module that hides all the node globals.