Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pup/lib/core/api.ts>PupApi

Universal process manager built in Deno
Go to Latest
class PupApi
import { PupApi } from "https://deno.land/x/pup@1.0.0-rc.31/lib/core/api.ts";

Exposes selected features of pup to Plugins and APIs

Constructors

new
PupApi(pup: Pup)

Properties

private
_pup: Pup
events: EventEmitter
paths: ApiPaths

Methods

block(id: string, reason: string)
getLogs(
processId?: string,
startTimeStamp?: number,
endTimeStamp?: number,
nRows?: number,
): Promise<LogEventData[]>
log(
severity:
| "log"
| "error"
| "info"
| "warn"
,
consumer: string,
message: string,
)
restart(id: string, reason: string)
start(id: string, reason: string)
stop(id: string, reason: string)
telemetry(data: TelemetryData): boolean
terminate(forceQuitMs: number)
unblock(id: string, reason: string)