Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hmed-torrent

hmedhappy7ISC1.0.0

Directly Download torrent with their hash

download torrent, torrent downloader, torrent nodejs

readme

How it works

just

npm i --save hmed-torrent ;

then if you want to Seed a file :

const { HmedSeed } = require('hmed-torrent');
const fs = resuire('fs')
const data = {
    fileData : fs.readFileSync('filepath'),
    fileName:"name of the file",
    fileExtension :"pdf || png || ..."
}

or you want to download :

const { HmedGetTorrent } = require('hmed-torrent);

const hashOfTheTorrent = "34ab857a6a99586efdee73b435f586912e8f8863";

HmedGetTorrent(hashOfTheTorrent) ;

=> the file will be localy downloaded ;