string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
minipass-sized
A Minipass stream that raises an error if you get a different number of bytes than expected
filesize
JavaScript library to generate a human readable String describing the file size
pretty-bytes
Convert bytes to a human readable string: 1337 → 1.34 kB