MCPcopy Index your code
hub / github.com/nodejs/node / padZero

Function padZero

deps/npm/lib/utils/log-file.js:8–8  ·  view source on GitHub ↗
(n, length)

Source from the content-addressed store, hash-verified

6const { formatWithOptions } = require('./format')
7
8const padZero = (n, length) => n.toString().padStart(length.toString().length, '0')
9
10class LogFiles {
11 // Default to an array so we can buffer

Callers 1

#openLogFileMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…