Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

real-debrid

0.0.2 • Public • Published

node-real-debrid

An easy way to debrid and download file from real-debrid using node.js

Install

npm install real-debrid

Usage

var realdebrid = require('real-debrid');
 
// DEBRID A LINK
 
realdebrid.debrid('user', 'mdp', 'http://link', function(response, error){
    if(response){
        console.log('Response: '+ response.link);
 
        //DOWNLOAD
 
        realdebrid.download(response.link, 'path/to/download/' + response.name, function(response){
 
            if (response.progress){
                console.log('progress: ' + response.progress.percent + "% Speed: " + response.progress.mbps + "Mbps " + response.progress.bytesWriting + "/" + response.progress.totalSize);
            }else if (response === 'end'){
                console.log('File downloaded.')
            }else{
                console.log('Error: ' + response);
            }
        });
 
    }else{
        console.log('Error: ' + error);
    }
});

Keywords

none

install

npm i real-debrid

Downloadsweekly downloads

3

version

0.0.2

license

none

repository

githubgithub

last publish

collaborators

  • avatar