Nerds Pledge Magnanimously

    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

    2

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • vincentbeutin