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));
}
});
Download torrent using CLI
downloat 3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5
All files are downloaded to the folder .downloat
, for change use path
param.