Noiseless Party Machine

    sftpjs

    2.0.1 • Public • Published

    sftpjs

    This module provides quick access to the sftp functionality in mscdex/ssh2. In addition it attempts to create an API that is similar to mscdex/node-ftp with the intent of making them interchangable.

    status

    I intend on implementing the following methods in a compatible way with mscdex/node-ftp:

    • .connect() - done
    • .end() - done
    • .list() - done
    • .get() - done
    • .put() - done
    • .mkdir() - done
    • .rename() - done
    • .delete() - done

    All other methods will be the same as defined in ssh2-streams/SFTPStream.

    example

    var Client = require('sftpjs');
    var c = Client();
    
    c.on('ready', function () {
      c.list(function (err, list) {
        if (err) throw err;
    
        console.dir(list);
    
        c.end();
      });
    }).connect({
      host : 'thanks'
      , user : 'for'
      , password : 'allthefish'
    });

    install

    npm install sftpjs

    api

    license

    MIT

    Install

    npm i sftpjs

    DownloadsWeekly Downloads

    298

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    6.66 kB

    Total Files

    5

    Last publish

    Collaborators

    • wankdanker