hmed-torrent
v1.0.0
Published
Directly Download torrent with their hash
Downloads
4
Maintainers
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 ;