0.0.4 • Published 8 years ago

nodesftp v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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?

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago