JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 927
  • Score
    100M100P100Q10374F
  • License MIT

IPLD Resolver Implementation in JavaScript

Package Exports

  • ipld-resolver

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ipld-resolver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

IPLD Resolver

Coverage Status Travis CI Circle CI Dependency Status js-standard-style standard-readme compliant

JavaScript implementation of the IPLD Resolver

Table of Contents

Install

> npm install --save ipfs-ipld

Usage

const IPLDResolver = require('ipld-resolver')

// pass an optional blockService, if no blockService is passed, 
// one is created in memory.
const ipldResolver = new IPLDResolver(blockService)

API

IPLD Resolver

.put(node, callback)

Store the given node (any JavaScript object).

.putStream([callback])

Returns a sink pull-stream, to write IPLD objects to.

.get(cid, callback)

Retrieve a node by the given multihash.

.getStream(cid)

Returns a source pull-stream of the requested IPLD object.

.remove(cid, callback)

Remove a node by the given multihash

.resolve(cid, path, callback)

Resolves an IPLD path

.support.add(multicodec, formatResolver, formatUtil)

Add support to another IPLD Format

.support.rm(multicodec)

Removes support of an IPLD Format

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

License

MIT