downloat
v0.0.15
Published
Torrent client for downloading video files using command-line interface.
Downloads
6
Maintainers
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 usepath
param.