v2.0.1
filesize
A package to get humanized file sizes. Translate raw file size into human readable strings.
182Likes 38.2K30-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
Humanize file sizes
English project snapshot. Visit GitHub for the latest content.
A micro library that provides an easy way to get human readable file size strings
filesize(1024); // "1 KB"
filesize(664365320); // "633.59 MB"
filesize(4324324232343); // "3.93 TB"
Optional parameter to specify numbers after comma/point:
filesize(664365320, 4); // "633.5881 MB"
filesize(4324324232343, 3); // "3.932 TB"
Inspired by filesize.js
Dependency list 3 items
^1.16.8^1.0.1^1.11.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗