v2.0.1
filesize
一個用於取得人性化的檔案大小的套件。將原始檔案大小轉換為可讀的字串。
182喜歡 3萬近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
人性化檔案大小
^1.16.8^1.0.1^1.11.0以下為英文專案原文快照,最新內容請造訪 GitHub。
pub package Build Status Coverage Status
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