x/denon@2.5.0/mod.ts

👀 Monitor any changes in your Deno application and automatically restart.
Very Popular
Latest
import * as mod from "https://dotland.deno.dev/x/denon@2.5.0/mod.ts";

Classes

Denon instance. Holds loaded configuration and handles creation of daemons with the start(script) method.

Handle all the things related to process management. Scripts are built into executable commands that are executed by Deno.run() and managed in an Executable object to make available process events.

Watches for file changes in paths path yielding an array of all of the changes each time one or more changes are detected. It is debounced by interval, recursive, exts, match and skip are filtering the files which will yield a change

Variables

The default denon configuration

Interfaces

A file that was changed, created or removed

Runner configuration. This configuration is, in contrast to other, extended by Denon config as scripts has to be a top level parameter.

All of the options for the watch generator

Type Aliases

Events you can listen to when creating a denon instance as module:

const denon = new Denon(config);
for await (const event of denon.run(script)) {
  // event handling here
}