2.0.6 • Published 1 year ago
sftp-watcher v2.0.6
Sftp-watcher
npm install sftp-watcher
SampleCode
var SftpWatcher = require("sftp-watcher");
var event = new SftpWatcher({
host : 'your.hostname.com',
port : 22,
username : 'username',
password : 'password',
path : 'test/'
});
event.on("upload", function (data) {
console.log(data)
});
event.on("delete", function (data) {
console.log(data)
});
event.on("heartbeat", function (data) {
console.log(data.toString())
});
event.on("close", function (data) {
console.log(data.toString())
});
event.on("error", function (data) {
console.log(data.toString())
});
/*To stop the watcher*/
event.emit("stop");
2.0.6
1 year ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago