torrent-storm

0.2.2 • Public • Published

torrent-storm

Usage example:

let streamer = createStreamer('magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e')
let videoStream = null

// This will start streaming at localhost:2700
streamer.then(stream => {
    videoStream = stream
    stream.on('info', function(data) {
        console.debug(data)
    })
    stream.on('files', function(data) {
        console.warn(data)
    })
    stream.on('stats', function(stats) {
        console.info(stats)
    })
}).catch(err => {
    if (videoStream) videoStream.close()
    console.error(err)
})

No support is provided, so don't count on regular updates.

Readme

Keywords

none

Package Sidebar

Install

npm i torrent-storm

Weekly Downloads

3

Version

0.2.2

License

UNLICENSED

Last publish

Collaborators

  • nightwolfz