1.0.1 • Published 6 years ago

safe-abstract-blob-store v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

safe-abstract-blob-store

Safe in-memory blob store

blob-store-compatible

filesystem blob store with atomic writes and high file limits on Windows

This module exposes the same API as abstract-blob-store, but has a _list function for compatibility with safe-fs-blob-store -like modules

Usage

var store = require('safe-abstract-blob-store')
var blobs = store('some-directory')

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

ISC