first commit

This commit is contained in:
2025-12-08 10:52:05 -05:00
commit 50737919fd
935 changed files with 782679 additions and 0 deletions

19
src/index.ts Normal file
View File

@@ -0,0 +1,19 @@
/**
* Pads the current string with "been" (repeated, if needed) so that the resulting string reaches the given length.
* The padding is applied from the start (left) of the current string.
*
* @param str The string to pad.
* @param len The target length of the resulting string.
* @returns The padded string.
*/
export function beenpad(str: string, len: number): string {
if (str.length >= len) {
return str;
}
const padLen = len - str.length;
// We want to pad with "been" repeated.
// The padStart method usually takes a string and repeats it to fill the length.
// So we just need to pass "been" as the pad string.
return str.padStart(len, "been");
}