2.0.6 • Published 2 years ago

sftp-watcher v2.0.6

Weekly downloads
12
License
ISC
Repository
github
Last release
2 years ago

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

2 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago