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

x/pup/lib/core/plugin.ts>PluginApi

Universal process manager built in Deno
Go to Latest
class PluginApi
import { PluginApi } from "https://deno.land/x/pup@1.0.0-beta.36/lib/core/plugin.ts";

Exposes selected features of pup to Plugins

Constructors

new
PluginApi(pup: Pup)

Properties

private
_pup: Pup
events: EventEmitter

Methods

block(id: string, reason: string)
log(
severity:
| "log"
| "error"
| "info"
| "warn"
,
plugin: string,
message: string,
)
restart(id: string, reason: string)
start(id: string, reason: string)
stop(id: string, reason: string)
terminate(forceQuitMs: number)
unblock(id: string, reason: string)