JSPM

interface-pull-blob-store

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

Test suite for pull-blob-stores

Package Exports

  • interface-pull-blob-store

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 (interface-pull-blob-store) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

interface-pull-blob-store

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

Test suite for pull-blob-stores

A test suite and interface that can be used to implement streaming file (blob) storage modules for various storage backends and platforms. All streaming happens through the use of pull-streams.

Modules that use this

Table of Contents

Install

TODO

Usage

TODO

API

A valid blob store should implement the following APIs. There is a reference in-memory implementation available at src/index.js in this repo.

store.write(key, cb)

This method should return a sink, which when written to writes the data to the blob store.

store.read(key)

This method should return a source that emits blob data from the underlying blob store or emits an error if the blob does not exist or if there was some other error during the read.

store.exists(key, cb)

This checks if a blob exists in the store.

store.remove(key, cb)

This method should remove a blob from the store.

Contribute

If you would like to contribute code to this repository, please dive in! Check out the issues. Clicking the banner above will lead you to the general IPFS community contribute guidelines, if you would like to contribute in other ways.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT