0.0.2 • Published 7 years ago

magnetorrent v0.0.2

Weekly downloads
10
License
MIT
Repository
github
Last release
7 years ago

magnetorrent

Download ".torrent" file from magnet-uri or infohash.

example

var uri = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=udp%3A%2F%2Ftracker.example4.com%3A80&tr=udp%3A%2F%2Ftracker.example5.com%3A80&tr=udp%3A%2F%2Ftracker.example3.com%3A6969&tr=udp%3A%2F%2Ftracker.example2.com%3A80&tr=udp%3A%2F%2Ftracker.example1.com%3A1337';

magnet2torrent(uri, "C:/torrents/test.torrent", function (dest) {
    console.log(dest)
});