UNPKG

torrent

Version:

torrent from the command line

14 lines (10 loc) 253 B
var torrents = require('torrent-stream') module.exports = function (source, opts) { var engine = torrents(source, opts) engine.on('ready', function () { engine.files.forEach(function (file) { file.select() }) }) return engine }