🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ftp-node

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftp-node

A wrapper for ftp function because ftp is super complicated and I just want to upload

0.0.7
latest
Source
npm
Version published
Maintainers
1
Created
Source

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?

Keywords

ftp

FAQs

Package last updated on 14 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