🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

ftpper

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftpper

a wrapper for ftp and ftp-client

0.2.33
latest
Source
npm
Version published
Maintainers
1
Created
Source

Description

node-ftpper is a wrapper for the popular nodejs FTP client module node-ftp and node-ftp-client. It tried to provide a more simple way to use FTP in nodejs

Requirements

  • node.js -- v0.8.0 or newer

Dependencies

node-ftp node-ftp-client

Installation

npm install ftpper

Usage

Initialization

To crate an instance of the wrapper use the following code:

var ftpper = require('ftpper');
var ftps = ftpper(configs);

where configs is an array of the ftp server configuration:

[{
  host:host1,
  user:username,
  password:password
 },
 {
  host:host2
  user:username
  password:password
 }
]);

Examples

ftps.upload(['test/**'], '/remote_site/test/', results=>{
	console.log("ftp uploaded");
});
ftps.chmod('755', '/remote_site/test/test_file');

Keywords

ftpper

FAQs

Package last updated on 02 Oct 2024

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