Skip to main content

Built and signed on GitHub Actions

The official web interface plugin for Pup

This package works with Deno
This package works with Deno
JSR Score
64%
Published
4 months ago (2.0.2)
class PupPlugin

Constructors

new
PupPlugin(
apiUrl: string,
apiToken: string,
)

Properties

meta: { name: string; version: string; api: string; repository: string; }
private
config: Configuration
private
router: Router

Methods

refreshApiToken(apiToken: string): Promise<void>

Pup will periodically send new api tokens

Make sure to override this and receive the new tokens

private
setupRoutes(): void
private
startServer(): Promise<void>

Add Package

deno add jsr:@pup/plugin-web-interface

Import symbol

import { PupPlugin } from "@pup/plugin-web-interface";

---- OR ----

Import directly with a jsr specifier

import { PupPlugin } from "jsr:@pup/plugin-web-interface";