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

std/node/_fs/_fs_watch.ts>watchFile

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

Parameters

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