UNPKG
torrent
Version:
latest (2.0.0)
2.0.0
1.7.0
1.6.2
1.6.1
1.6.0
1.5.0
1.4.1
1.4.0
1.3.3
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
torrent from the command line
github.com/maxogden/torrent
maxogden/torrent
torrent
/
index.js
14 lines
(10 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }