🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

torrent-blob-store

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

torrent-blob-store

Read-only BitTorrent backed streaming blob store

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
2
Created
Source

torrent-blob-store

Read-only BitTorrent backed streaming blob store

npm install torrent-blob-store

blob-store-compatible

Usage

var torrents = require('torrent-blob-store')
var store = torrents()

// create a read stream to some star trek fan fiction
var rs = store.createReadStream({
  link: 'magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e',
  index: 1 // get the file at index 1
})

rs.on('data', function(data) {
  console.log('received:', data) // data received from peers
})

rs.on('end', function() {
  console.log('(no more data)')
})

You can pass in the same options in the blob store constructor as in torrent-stream. All read streams needs link to be set. Currently only magnet links are supported

License

MIT

FAQs

Package last updated on 21 Aug 2015

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