Runs shell scripts when syncthing folders get updated. 🦉🕗
Find a file
Lynn Smeria dccb7512f8 Poll once immediately
Otherwise errors will be delayed
2020-03-18 20:16:36 +02:00
.gitignore Initial commit 2020-03-18 20:01:47 +02:00
.npmignore Add .npmignore 2020-03-18 20:04:14 +02:00
api.js Initial commit 2020-03-18 20:01:47 +02:00
hooks.js Run hooks 2020-03-18 20:01:47 +02:00
index.js Poll once immediately 2020-03-18 20:16:36 +02:00
LICENSE Create LICENSE 2020-03-18 20:01:47 +02:00
package.json 0.1.0 2020-03-18 20:02:35 +02:00
README.md Initial commit 2020-03-18 20:01:47 +02:00
yarn.lock Collect & simulate hooks 2020-03-18 20:01:47 +02:00

syncthing-hooks

Very early experiment for running event hooks when SyncThing detects changes in a folder.

Prerequisites

A somewhat recent version of Node.js.

Installation

None yet, there's no point installing this as a daemon right now. But you'll need to install the dependencies to make it run:

npm i
# or
yarn

Usage

You can experiment with it by just running it via Node.js and monitoring the output.

API_KEY=mykey node index.js

Then change some files in one of your monitored folders.