import * as S from "flurp/string";const leftDot = S.padLeft("10, ".");const leftMulti = S.padLeft(10, "_.");leftDot("weasel"); // "....weasel"leftDot("grayweasel") // "grayweasel"leftMulti("weasel") // "_._.weasel";leftMulti("aweasel") // "_._aweasel";
padding string (defaults to " ")
Example