MCPcopy Create free account
hub / github.com/npkgz/cli-progress / round

Function round

lib/format-time.js:5–11  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

3// format a number of seconds into hours and minutes as appropriate
4module.exports = function formatTime(t, options, roundToMultipleOf){
5 function round(input) {
6 if (roundToMultipleOf) {
7 return roundToMultipleOf * Math.round(input / roundToMultipleOf);
8 } else {
9 return input
10 }
11 }
12
13 // leading zero padding
14 function autopadding(v){

Callers 1

format-time.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…