创建种子.torrent文件

使用create-torrent模块在Node.js和浏览器中创建种子文件。安装npm install create-torrent。用法:创建种子文件的简单示例:const createTorrent = require('create-torrent')

const fs = require('fs')

createTorrent('/path/to/folder', (err, torrent) => {

if (!err) {

fs.writeFile('my.torrent', torrent)}

})。tor

zip 文件大小:173.76KB