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

std/node/_fs/_fs_watch.ts>watch

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function watch
import { watch } from "https://deno.land/std@0.138.0/node/_fs/_fs_watch.ts";

Parameters

filename: string | URL
options: watchOptions
listener: watchListener

Returns

FSWatcher

Parameters

filename: string | URL
listener: watchListener

Returns

FSWatcher

Parameters

filename: string | URL
options: watchOptions

Returns

FSWatcher

Parameters

filename: string | URL

Returns

FSWatcher

Parameters

filename: string | URL
optional
optionsOrListener: watchOptions | watchListener
optional
optionsOrListener2: watchOptions | watchListener