ftpper
v0.2.33
Published
a wrapper for ftp and ftp-client
Downloads
20
Maintainers
Readme
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');