Skip to content

Since I made an sftp module why not make an sftp one?

Notifications You must be signed in to change notification settings

kenichishibata/ftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftp

A semi-nonsense ftp client module for nodejs

Why?

Because i already made sftp-node and I'm too lazy typing code and ftp by mscdex(brian white) is amazing!

functions

upload(credentials,remoteFilePath,localFilePath)

Uploads the file

var ftp = require('ftp-node');


var options = {
  host: 192.168.0.0,
  port: 22,
  username: user,
  password: pass
};

ftp.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 add other functions add async?

About

Since I made an sftp module why not make an sftp one?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published