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

std/strings/pad.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.36.0/strings/pad.ts";

Functions

Pad helper for strings. Input string is processed to output a string with a minimal length. If the parameter strict is set to true, the output string length is equal to the strLen parameter. Example:

Interfaces

FillOption Object