MCPcopy Index your code
hub / github.com/nodejs/node / watch

Method watch

lib/internal/vfs/provider.js:575–577  ·  view source on GitHub ↗

* Watches a file or directory for changes. * Returns an EventEmitter-like object that emits 'change' and 'close' events. * @param {string} path The path to watch * @param {object} [options] Watch options * @param {number} [options.interval] Polling interval in ms (default: 100) * @par

(path, options)

Source from the content-addressed store, hash-verified

573 * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not overridden by subclass
574 */
575 watch(path, options) {
576 throw new ERR_METHOD_NOT_IMPLEMENTED('watch');
577 }
578
579 /**
580 * Watches a file or directory for changes (async iterable version).

Calls

no outgoing calls

Tested by

no test coverage detected