niche/pad_format_utils library

Functions

formatFileSize(int bytes, {int decimals = 1}) → String
Formats bytes as a human-readable size using binary (1024) units up to TB.
padWithZeros(int value, int length) → String
Returns value as a string left-padded with zeros to at least length chars.