This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script src="https://cdn.jsdelivr.net/webtorrent/latest/webtorrent.min.js"></script> | |
<script> | |
var client = new WebTorrent() | |
client.add('https://webseed.btorrent.xyz/timedrift-alpine-4k-timelapse.mp4.torrent', function (torrent) { | |
// Got torrent metadata! | |
console.log('Client is downloading:', torrent.infoHash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -g create-torrent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spawn = require('electron-spawn'); | |
var electron = spawn('seeder.js', { | |
detached: false | |
}); | |
electron.stderr.on('data', function (data) { | |
console.error(data.toString()) | |
}); |
NewerOlder