ipfs-inactive / js-ipfs-unixfs-importer

[ARCHIVED] JavaScript implementation of the UnixFs importer used by IPFS
MIT License
5 stars 4 forks source link

feat: create a DAG from a list of CID’s and sizes #46

Closed mikeal closed 4 years ago

mikeal commented 4 years ago

This definitely needs a thorough review since this is a bit of a hack and I’m not all that familiar with this code.

This is a feature we need in order to generate custom file data structures from a pre-parsed array of parts. It’s a pretty unique use case and I’m not even sure we should document it as part of the public API.

This implementation seemed like the simplest way to accomplish the goal, but there may be a simpler way I missed.

mikeal commented 4 years ago

Please note that this branch relies on another PR https://github.com/ipfs/js-ipfs-unixfs-importer/pull/45

achingbrain commented 4 years ago

This should have been enabled by #48 - happy to close?

mikeal commented 4 years ago

yup, closing.