MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / pad

Function pad

src/extension/utils.ts:248–252  ·  view source on GitHub ↗
(str: string, length: number)

Source from the content-addressed store, hash-verified

246const start = process.hrtime.bigint();
247let last = start;
248function pad(str: string, length: number) {
249 while (str.length < length)
250 str = "0" + str;
251 return str;
252}
253export const logTime = (taskFinished?: string) => {
254 if (!shouldLogTimings)
255 return;

Callers 2

logTimeFunction · 0.85
generateFilenameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected