Socket
Book a DemoInstallSign in
Socket

sftp-file-watcher

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sftp-file-watcher

An sftp file watcher

1.0.3
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

#Sftp file watcher

SFTP file watcher monitors the SFTP directory provided and tigger corresponding event. It's easy to start and stop process at any time.

Configuration

  • install package

      npm install sftp-file-watcher
    

SampleCode

var listener = require('./watcher');

var sftpConfig = {
    host: "127.0.0.1",
    port: 22,
    username: "user_name",
    password: "password",
};

var listener = new watcher(sftpConfig, "path-to-folder/");

/** triggers on the start of listening */
listener.on("init", function (data) {
    console.log(data);
});

/** listen to every file upload */
listener.on("upload", function (data) {
    console.log(data);
});

note: more functionalities are coming soon !!!

Keywords

Sftp

FAQs

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.