1.0.0 • Published 3 years ago

hmed-torrent v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

#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 ;