(ms)
| 732 | } |
| 733 | |
| 734 | function formatDuration(ms) { |
| 735 | if (ms >= 60_000) return `${(ms / 60_000).toFixed(2)}m`; |
| 736 | if (ms >= 1000) return `${(ms / 1000).toFixed(2)}s`; |
| 737 | return `${Math.round(ms)}ms`; |
| 738 | } |
| 739 | |
| 740 | function runJson(command, args, options = {}) { |
| 741 | return JSON.parse(runText(command, args, options)); |
no outgoing calls
no test coverage detected