Skip to main content
Module

x/refresh/mod.ts>RefreshInit

Simple browser reload on file change middleware for your Deno web applications.
Latest
interface RefreshInit
import { type RefreshInit } from "https://deno.land/x/refresh@1.0.0/mod.ts";

Properties

optional
debounce: number

Debounce timeout for browser refresh on file change. Default 30ms.

optional
ignoreKinds: string[]

Array of file system events to ignore. Default ["any", "access"].

optional
paths: string | string[]

One or more paths, which can be files or directories, for watching file system events. Default ./

optional
recursive: boolean

For directories, will watch the specified directory and all sub directories when set to true. Default true.

optional
signal: AbortSignal

An abort signal to stop the watching of files.