MCPcopy Create free account
hub / github.com/nodejs/node / watch

Method watch

lib/internal/vfs/providers/memory.js:952–955  ·  view source on GitHub ↗

* Watches a file or directory for changes. * @param {string} path The path to watch * @param {object} [options] Watch options * @returns {VFSWatcher}

(path, options)

Source from the content-addressed store, hash-verified

950 * @returns {VFSWatcher}
951 */
952 watch(path, options) {
953 const normalized = this.#normalizePath(path);
954 return new VFSWatcher(this, normalized, options);
955 }
956
957 /**
958 * Watches a file or directory for changes (async iterable version).

Callers

nothing calls this directly

Calls 1

#normalizePathMethod · 0.95

Tested by

no test coverage detected