UNPKG

skim-blob-store

Version:

Blob store that will read from a remote blob store and cache it to a local one

30 lines (18 loc) 780 B
# skim-blob-store Blob store that will read from a remote blob store and cache it to a local one. ``` npm install skim-blob-store ``` [![build status](http://img.shields.io/travis/mafintosh/skim-blob-store.svg?style=flat)](http://travis-ci.org/mafintosh/skim-blob-store) [![blob-store-compatible](https://raw.githubusercontent.com/maxogden/abstract-blob-store/master/badge.png)](https://github.com/maxogden/abstract-blob-store) ## Usage ``` js var skim = require('skim-blob-store') var blobs = skim(localBlobStore, remoteBlobStore) blobs.createReadStream({key: 'some-key'}) .pipe(process.stdout) ``` In the above example if `some-key` is already in localBlobStore it will just be read from that one. If not it will try and copy it from remoteBlobStore ## License MIT