Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/fmt/printf.ts>sprintf

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function sprintf
import { sprintf } from "https://deno.land/std@0.96.0/fmt/printf.ts";

Converts and format a variable number of args as is specified by format. sprintf returns the formatted string.

Parameters

format: string
...args: unknown[]

Returns

string