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

x/deno/std/strings/pad.ts>FillOption

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface FillOption
import { type FillOption } from "https://deno.land/x/deno@v0.28.0/std/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