slim-blob-store
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

slim-blob-store

Blob store that does the following:

  • Writes to provided local and remote blob stores
  • Uses local blob store as a read cache, with the remote as a fallback
npm install slim-blob-store

build status

blob-store-compatible

Usage

const slim = require("slim-blob-store");
 
const blobs = slim(localBlobStore, remoteBlobStore);
 
const ws = blobs.createWriteStream({ key: "some-key" });
ws.end("hello slim blob!");
// `hello slim blob!` will be written to the local and the remote
 
blobs.createReadStream({ key: "some-key" }).pipe(process.stdout);
// 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

Readme

Keywords

Package Sidebar

Install

npm i slim-blob-store

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

20.8 kB

Total Files

13

Last publish

Collaborators

  • teomik129