Module

std/strings/mod.ts>FillOption

Deno standard library
Go to Latest
interface FillOption
import { type FillOption } from "https://dotland.deno.dev/std@0.36.0/strings/mod.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