mirror of
https://github.com/hexahigh/cdn.git
synced 2025-12-11 20:15:22 +01:00
uh
This commit is contained in:
parent
a0b54fa335
commit
0ea63c2d7f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user