Skip to content

abstract-blob-store compatible that stores blobs using the browser Cache interface

License

Notifications You must be signed in to change notification settings

hackergrrl/browser-cache-blob-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser-cache-blob-store

build status

npm

blob-store-compatible

blob store that stores blobs using the browser Cache interface. This interface is part of the Service Worker spec but is available to windowed scopes as well as workers.

npm install browser-cache-blob-store

Usage

var cacheStore = require('browser-cache-blob-store')
var blobs = cacheStore()

var ws = blobs.createWriteStream({
  key: 'some/path/file.txt'
})

ws.write('hello world\n')
ws.end(function() {
  var rs = blobs.createReadStream({
    key: 'some/path/file.txt'
  })

  rs.pipe(process.stdout)
})

License

MIT

About

abstract-blob-store compatible that stores blobs using the browser Cache interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%