🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

dat-remote-blobs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-remote-blobs

Blob store that uses the dat remote api

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 29 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts