MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / pad

Function pad

scripts/youtube_getVideoCaption.js:165–165  ·  view source on GitHub ↗
(num, len = 2)

Source from the content-addressed store, hash-verified

163 }
164
165 const pad = (num, len = 2) => num.toString().padStart(len, "0");
166
167 // 6.120 -> 00:00:06,120
168 function formatTimeToSRT(seconds) {

Callers 1

formatTimeToSRTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected