This package has been deprecated

Author message:

use npm install sftp-node --save instead

nodesftp

0.0.4 • Public • Published

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?

Package Sidebar

Install

npm i nodesftp

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • kenichi.shibata