watch_dir.ts

Declarations
#

6 declarations

view source

watch_dir
#

watch_dir.ts view source

({ dir, on_change, filter, absolute, chokidar, ignored, }: WatchDirOptions): WatchNodeFs

Watch for changes on the filesystem using chokidar.

__0

returns

WatchNodeFs

WatchDirOptions
#

watch_dir.ts view source

WatchDirOptions

dir

type string

on_change

filter

type PathFilter | null | undefined

chokidar

type ChokidarOptions

absolute

When false, returns the path relative to dir.

type boolean

ignored

Pattern to ignore files, merged into chokidar.ignored if also provided. - undefined (default) ignores files matching .tmp. pattern - null sets no default ignore pattern - or some custom pattern

type Matcher | null

WatcherChange
#

WatcherChangeCallback
#

WatcherChangeType
#

WatchNodeFs
#

Imported by
#