UNPKG

monex

Version:

Execute one or multiple scripts, interactively or in daemon mode, and restart them whenever they crash or a watched file changes.

22 lines (21 loc) 555 B
import type { OptionsSingle, Stat } from '../types'; declare class ControllerSingle { private options; private name; private cluster; private restarting; private restarts; private stdout; private stderr; private process?; private watcher?; constructor(options: OptionsSingle); private _processKill; private _watcherKill; restart: () => Promise<void>; start: () => Promise<void>; stat: () => Promise<Stat>; stop: () => Promise<void>; watch: () => this; } export default ControllerSingle;