method legacyCompat.sprintf
legacyCompat.sprintf(
format: string,
...args: unknown[]
): string

A minimal sprintf covering the format-spec subset actually used across the legacy plugin corpus (%s, %d, %f with optional width/precision) — not a full reimplementation of Perl's considerably larger sprintf grammar.

Parameters

format: string
...args: unknown[]

Return Type

string

Usage

import { legacyCompat } from "plugins/legacy-globals.d.ts";