IPFS IPLD
JavaScript implementation of the IPLDService
Table of Contents
Install
npm install --save ipfs-ipld
Usage
const ipfsIPLD = // available componentsipfsIPLDIPLDServiceipfsIPLDresolve
API
resolve
Resolve IPLD paths against a given IPLDService
const node = hello: world: 11 some: 12 const mh = ipldipldService
IPLDService
.put(node, cb)
Store the given node (any JavaScript object).
.putStream([cb])
Returns a sink pull-stream, to write IPLD objects to.
.get(multihash, cb)
Retrieve a node by the given
multihash
.
.getStream(multihash)
Returns a source pull-stream of the requested IPLD object.
.getRecursive(multihash, cb)
Retrieve a node by the given
multihash
and all linked nodes.
.getRecursiveStream(multihash)
Returns a source pull-stream, which emits the requested node, and all linked nodes.
.remove(multihash, cb)
Remove a node by the given
multihash
Contribute
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.