MCPcopy
hub / github.com/ineo6/hosts / lJust

Function lJust

src/utils.ts:3–6  ·  view source on GitHub ↗
(str: string, total: number, pad?: string)

Source from the content-addressed store, hash-verified

1import {HostData} from "./hosts";
2
3function lJust(str: string, total: number, pad?: string) {
4 return str + Array(total - str.length)
5 .join(pad || ' ');
6}
7
8export function buildHosts(hostData: HostData[]) {
9 let generatedContent = ''

Callers 1

buildHostsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected