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