appcd-fswatch-manager
v3.0.7
Published
Filesystem watcher service for the Appc Daemon.
Downloads
3
Readme
appcd-fswatch-manager
Filesystem watcher service for the Appc Daemon.
Visit https://github.com/appcelerator/appc-daemon for more information.
Report issues to GitHub issues. Official issue tracker in JIRA.
Installation
npm i appcd-fswatch-manager
Usage
import FSWatchManager from 'appcd-fswatch-manager';
import Dispatcher from 'appcd-dispatcher';
const manager = new FSWatchManager();
Dispatcher.register('/fswatch', manager);
const ctx = await Dispatcher.call('/fswatch', {
data: {
path: '/some/path/to/watch',
recursive: true,
depth: 2
},
type: 'subscribe'
});
console.log(ctx.response);
Legal
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.