This commit is contained in:
Boof 2023-04-28 11:39:02 +02:00 committed by GitHub
parent a0b54fa335
commit 0ea63c2d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,9 @@
import createTorrent from 'create-torrent'
import fs from 'fs'
createTorrent('./', [urlList: "https://boof.eu.org",] (err, torrent) => {
var opts = ""
createTorrent('./', [opts], (err, torrent) => {
if (!err) {
// `torrent` is a Buffer with the contents of the new .torrent file
fs.writeFile('site.torrent', torrent)