http-sftp

1.0.3 • Public • Published

http-sftp

A library for transferring files from an http link to an SFTP server.


Install

$ npm install http-sftp

Example

    var client = require('http-sftp');
    var scpOpts = {
                      host: 'test.rebex.net',
                      username: 'demo',
                      password: 'XXXXXX' //you can also use `privateKey` with a key file and omit password
                      path: ''
                  }
    var link = 'https://raw.githubusercontent.com/request/request/master/README.md';
    var destination = '/public/test.txt';
    client.send(link, scpOpts, destination, function(err, resp){
          err ? console.error(err) : console.log('completed transfer');  
    });

Transfer an http file to SFTP

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i http-sftp

    Weekly Downloads

    12

    Version

    1.0.3

    License

    ISC

    Last publish

    Collaborators

    • marewisn
    • voice-vb-sre-lp
    • whe_liveperson
    • pkandhari
    • tmuthaiah
    • vprasannalp
    • mv-mayank
    • kpawelec
    • lciesielski
    • bbowen_lp
    • vsachan-lp
    • nikhilliveperson
    • ysivasankaran
    • siddhanttenfold
    • bfreeman-lp
    • wisniom
    • manojanama
    • sivagogula
    • marktenfold
    • ananyar
    • pratik245
    • thelastemperor
    • tenfold-bot
    • louishawkins
    • patrickhogan