suffixFileSize()

Used to make a file size human readable. Takes the number of bytes or bits and converts it into a string indicating the number in the appropriate range (eg. KB, MB, etc.).

This function is valid in v2.5.0 to v2.14.0. This function has been downloaded 46 times.

Parameters

{number} count
Number of bytes or bits to represent as a string.
{boolean=} opt_countInBits Optional, Default:false
Specifies whether count is given in bits instead of bytes.

Returns

{string}
A string indicating count with the appropriate measure (eg. kb, Mb, etc.).