MCPcopy Create free account
hub / github.com/denoland/std / sprintf

Function sprintf

fmt/printf.ts:982–985  ·  view source on GitHub ↗
(format: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

980 * @throws {Error} If an invalid argument type is provided for a format specifier.
981 */
982export function sprintf(format: string, ...args: unknown[]): string {
983 const printf = new Printf(format, ...args);
984 return printf.doPrintf();
985}
986
987/**
988 * Converts and formats a variable number of `args` as is specified by `format`.

Callers 2

printf_test.tsFile · 0.90
printfFunction · 0.85

Calls 1

doPrintfMethod · 0.95

Tested by

no test coverage detected