Webtorrent-element

webtorrent-element

webcomponent for torrents.

You would not really appreciate this module if you haven't read I’ve seen the future, it’s full of HTML.

This module makes use of webtorrent to implement an HTML element you can use to display content on WebTorrent.

Get it: npm install --save webtorrent-element

Sample usage:

1
2
3
4
5
6
7
// This gets bundled.
const WebTorrentComponent = require('webtorrent-element');

let elem = new WebTorrentComponent();
elem.src = MAGNETURL; // MANGETURL to be viewed.
elem.file = 'Sintel.mp4'; // File in that torrent.
document.body.appendChild(elem);

GIF FTW!

webtorrent-element

Suggest a module

Comments