Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 812 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 812 Bytes

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