Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/node/fs.ts>watch

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function watch
Re-export
import { watch } from "https://deno.land/std@0.145.0/node/fs.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