local-storage-blob-store

blob store that stores blobs on the browser's localStorage

Usage no npm install needed!

<script type="module">
  import localStorageBlobStore from 'https://cdn.skypack.dev/local-storage-blob-store';
</script>

README

local-storage-blob-store

blob store that stores blobs on the browser's localStorage

npm install local-storage-blob-store

build status

blob-store-compatible

Usage

var store = require('local-storage-blob-store')
var blob = store()

blob.createWriteStream({ key: 'cool' }).end('beans', readback)

function readback () {
  blob.createReadStream({ key: 'cool' }).on('data', ondata)
  function ondata (buf) {
    console.log(buf.toString())
  }
}

License

MIT