filesize is a JavaScript library to easily format numbers into human-readable file sizes. It converts bytes into KB, MB, GB, TB, and more, applying appropriate multipliers and units. Ideal for displaying file sizes in web applications or command-line tools. It supports custom base values (binary or SI), custom result strings. filesize is lightweight, well-tested, and widely used in the npm ecosystem.