Initial commit

This commit is contained in:
Lynn Smeria 2020-03-17 23:11:02 +02:00
commit cfbb628536
6 changed files with 309 additions and 0 deletions

27
README.md Normal file
View file

@ -0,0 +1,27 @@
# 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:
```sh
npm i
# or
yarn
```
## Usage
You can experiment with it by just running it via Node.js and monitoring the output.
```sh
API_KEY=mykey node index.js
```
Then change some files in one of your monitored folders.