hmed-torrent

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i hmed-torrent

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.67 kB

Total Files

3

Last publish

Collaborators

  • hmedhappy