appcd-fswatch-manager

Filesystem watcher service for the Appc Daemon.

Usage no npm install needed!

<script type="module">
  import appcdFswatchManager from 'https://cdn.skypack.dev/appcd-fswatch-manager';
</script>

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.