interface-pull-blob-store

Test suite for pull-blob-stores

Usage no npm install needed!

<script type="module">
  import interfacePullBlobStore from 'https://cdn.skypack.dev/interface-pull-blob-store';
</script>

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