Skip to content

isabella232/watch-detector

 
 

Repository files navigation

watch-detector

Build Status

Utility for selecting the best options for sane:

watcher options:

  • watchman: if a valid version of watchman is installed, we will prefer this.
  • node: use node's built in watcher, if watchman is not present.

future options:

usage

yarn add watch-detector
const WatchDetector = require('watch-detector');
const sane = require('sane');

let detector = new WatchDetector();
let saneOptions = {
  /* sane options */
};

let options = detector.findBestWatcherOption(saneOptions)
/* options's watcher selection will be based on various heuristics */
sane(root, options);

optional

new WatchDetector({
  ui: /* console-ui instance */,
  fs: /* fs instance */
});

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%