Skip to main content
Module

x/dtils/mod.unstable.ts>createWatcher

The best unofficial library of utilities for Deno applications
Go to Latest
function createWatcher
import { createWatcher } from "https://deno.land/x/dtils@2.5.0/mod.unstable.ts";

Create a watcher that monitors a list of files for updates

Example:

const watcher = createWatcher({
	onUpdate: (file) => console.log('File changed:', file)
})

watcher.addFiles(await recursiveReadDir('.'))