{"library":"watch-detector","type":"library","category":null,"description":"The `watch-detector` utility identifies and selects the optimal file watcher mechanism for use with the `sane` library. It prioritizes a valid `watchman` installation on the system, falling back to Node.js's built-in watcher if `watchman` is unavailable or not correctly configured. The current stable version is 1.0.2. Release cadence appears sporadic, with maintenance updates typically driven by upstream `sane` or `watchman` compatibility issues. Its primary differentiator is abstracting the complex logic for choosing between `watchman` and Node's native file system watchers, simplifying `sane` configuration for applications that require robust and performant file monitoring, such as build tools or development servers (e.g., Ember CLI). It aims to provide the best possible performance while offering a reliable fallback, enabling developers to integrate efficient file system observation without needing to implement manual detection logic.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install watch-detector","imports":["import WatchDetector from 'watch-detector';"]},{"cmd":"yarn add watch-detector","imports":[]},{"cmd":"pnpm add watch-detector","imports":[]}],"homepage":null,"github":"https://github.com/chrmod/watch-detector","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/watch-detector","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/watch-detector/compatibility"}}