wchd

0.10.2 • Public • Published

wchd v0.10.2

Extensible watcher daemon (powered by fb-watchman)

A single, resilient connection shared between all packages via the wch client.

const wch = require('wchd');
 
// create a server
const server = wch(opts);
 
// watcher methods
wch.connect();
wch.watch(root, opts);
wch.unwatch(root);
wch.stream(dir, query);
wch.query(dir, query);
wch.list();

CLI

  • wch start start the daemon
  • wch stop stop the daemon

Watching

  • wch . watch current directory
  • wch -u . unwatch current directory
  • wch ./foo watch a relative directory
  • wch -u ./foo unwatch a relative directory
  • wch . -f watch current directory temporarily

The foreground (-f) watcher is lighter weight, because it only loads plugins that the current directory needs (instead of every plugin that every watched directory needs), and the API server isn't started.

/wchd/

    Package Sidebar

    Install

    npm i wchd

    Weekly Downloads

    1

    Version

    0.10.2

    License

    MIT

    Unpacked Size

    37.3 kB

    Total Files

    24

    Last publish

    Collaborators

    • aleclarson