Socket
Socket
Sign inDemoInstall

sftpjs

Package Overview
Dependencies
20
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sftpjs

sftp api similar to ftp using ssh2


Version published
Weekly downloads
60
decreased by-32.58%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 15 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc