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

std/fmt/printf.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.153.0/fmt/printf.ts";

sprintf and printf for printing formatted strings to stdout.

This implementation is inspired by POSIX and Golang but does not port implementation code.

Functions

Converts and format a variable number of args as is specified by format. printf writes the formatted string to standard output.

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