Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/lib/core/watcher.ts>Watcher

Universal process manager built in Deno
Go to Latest
class Watcher
implements AsyncIterable<FileEvent[]>
import { Watcher } from "https://deno.land/x/pup@1.0.0-alpha-10/lib/core/watcher.ts";

Constructors

new
Watcher(config?: WatcherConfig)

Properties

private
changes: { [key: string]: FileAction[]; }
private
config: WatcherConfig
private
optional
exts: string[]
private
interval: number
private
optional
match: RegExp[]
private
paths: string[]
private
signal
private
optional
skip: RegExp[]

Methods

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