fs-blob-store

blob store that stores blobs on the local file system

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fs-blob-store
3946.0.02 years ago8 years agoMinified + gzip package size for fs-blob-store in KB

Readme

fs-blob-store
blob store that stores blobs on the local file system
npm install fs-blob-store

build status dat
blob-store-compatible

Usage

var fs = require('fs-blob-store')
var blobs = fs('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

MIT