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

std/strings/pad.ts>FillOption

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface FillOption
import { type FillOption } from "https://deno.land/std@0.36.0/strings/pad.ts";

FillOption Object

Properties

optional
char: string

Char to fill in

optional
side: "left" | "right"

Side to fill in

optional
strict: boolean

If strict, output string can't be greater than strLen

optional
strictChar: string

char/string used to specify the string has been truncated

optional
strictSide: "left" | "right"

Side of truncate