Skip to main content
Module

x/denon/mod.ts>Watcher

👀 Monitor any changes in your Deno application and automatically restart.
Very Popular
Latest
class Watcher
implements AsyncIterable<FileEvent[]>
Re-export
import { Watcher } from "https://deno.land/x/denon@2.5.0/mod.ts";

Watches for file changes in paths path yielding an array of all of the changes each time one or more changes are detected. It is debounced by interval, recursive, exts, match and skip are filtering the files which will yield a change

Constructors

new
Watcher(config?: WatcherConfig)

Methods

private
denoWatch(): Promise<void>
private
legacyWatch(): Promise<void>
private
reset(): void
private
verifyPath(path: string): string
isWatched(path: string): boolean
iterate(): AsyncIterator<FileEvent[]>
reload(): void
[Symbol.asyncIterator](): AsyncIterator<FileEvent[]>