Up to three of `paths`, and how many more there are.
(paths: string[])
| 1215 | |
| 1216 | /** Up to three of `paths`, and how many more there are. */ |
| 1217 | function samplePaths(paths: string[]): string { |
| 1218 | return paths.slice(0, 3).join(', ') + (paths.length > 3 ? ` (+${formatNumber(paths.length - 3)} more)` : ''); |
| 1219 | } |
| 1220 | |
| 1221 | /** A file size as people say it: "1.9 MB", "640 KB". */ |
| 1222 | function formatFileSize(bytes: number): string { |
no test coverage detected