2.2.0 • Published 10 years ago

dat-remote-blobs v2.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

dat-remote-blobs

Blob store that uses the dat remote api

npm install dat-remote-blobs

Usage

var blobs = require('./')
var zlib = require('zlib')
var tar = require('tar-stream')

// pass a url to a remote dat instance
var npm = blobs({url:'npm.dathub.org'})

// key is required
var rs = npm.createReadStream({
  key: '21d0324a65be1bf3e653d129360c6c2636c3ce68b5568f3ee3d4ea2a3daa0b09'
})

// this is a tarball - print the contents
rs.pipe(zlib.createGunzip()).pipe(tar.extract())
  .on('entry', function(header, stream, next) {
    console.log(header)
    next()
  })

License

MIT

2.2.0

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago