downloat

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

Usage no npm install needed!

<script type="module">
  import downloat from 'https://cdn.skypack.dev/downloat';
</script>

README

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.