MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / pad

Function pad

background.js:934–934  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

932
933function buildSettingsExportFilename(date = new Date()) {
934 const pad = (value) => String(value).padStart(2, '0');
935 return `${SETTINGS_EXPORT_FILENAME_PREFIX}-${date.getFullYear()}${pad(date.getMonth() + 1)}${pad(date.getDate())}-${pad(date.getHours())}${pad(date.getMinutes())}${pad(date.getSeconds())}.json`;
936}
937

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected