downloat

0.0.15 • Public • Published

What is downloat?

Torrent client for downloading video files using command-line interface.

Installation

npm i downloat

To use the command line

npm i downloat -g

Usage

Import the library in your code:

const downloat = require('downloat');

Download torrent

downloat({source: '3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5'}).then(params => {
    if (params.downloat && !params.downloat.error) {
        console.log(JSON.stringify(params.downloat, null, 2));
    }
});
// "source": "3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5"
// "downloat": [{
//    "path": ".downloat/My.Puppy.mp4",
//    "size": 90145915,
//    "name": "My.Puppy.mp4",
//    "sha1": "fab0dc1c934218ec446aaf9fcf13d7bc3f05b912"
// }]

Download torrent using CLI

downloat 3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5

All files are downloaded to the folder .downloat, for change use path param.

Package Sidebar

Install

npm i downloat

Weekly Downloads

0

Version

0.0.15

License

MIT

Unpacked Size

8.37 kB

Total Files

4

Last publish

Collaborators

  • rickylawson