Utility module to handle global updates
Should only be installed manually for testing
import * from "https://x.nest.land/eggs-update-handler/mod.ts"
/** Install update handler cli to check for updates and notify user */
function installUpdateHandler(moduleName: string, execName: string, updateCheckInterval?: number): Promise<void>
/** Gets latest version from supported registries */
function getLatestVersion(registry: string, moduleName?: string, owner?: string): Promise<string>
/** Analyzes an URL from supported registries */
function analyzeURL(url: string): {
moduleName: string;
version: string;
versionURL: string;
registry: string;
owner: string;
}
/** ... */
deno run https://x.nest.land/eggs-update-handler/cli.ts <MODULE> <UPDATE_CHECK_INTERVAL> [ARGS...]