Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

nodesftp

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodesftp

a simple sftp client built on top of ssh2


Version published
Maintainers
1
Created

sftp

No nonsense sftp client module for nodejs

Why?

Because most of the sftp upload functions does not work well for me

functions

upload(credentials,remoteFilePath,localFilePath)

Uploads the file

var sftp = require('nodesftp');

var options = {
  host: 192.168.0.0,
  port: 22,
  username: user,
  privateKey: require('fs').readFileSync(path/to/key.pem)
};

sftp.upload(options, 'path/to/remote/file', 'path/to/local/file');

That's it! 3 lines of code then it uploads your file!

No defaults! defaults sucks and makes it hard to debug

Now go and tell your boss that you are awesome!

##TODO many functions add password?

FAQs

Package last updated on 13 Jan 2016

Did you know?

Socket

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