filesize_plus 1.1.1+1 icon indicating copy to clipboard operation
filesize_plus: ^1.1.1+1 copied to clipboard

A package to get humanized file sizes. Translate raw file size into human readable strings. With null safety support!

Filesize #

pub package Dart

A micro library that provides an easy way to get human readable file size strings. Now with null safety!

Features #

  • Size can be passed as number or as string
  • Optional parameter to specify numbers of digits after comma/point

Examples #

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

2
likes
140
pub points
51%
popularity

Publisher

verified publisher iconeduardom.dev

A package to get humanized file sizes. Translate raw file size into human readable strings. With null safety support!

Homepage

Documentation

API reference

License

Icon for licenses.BSD-2-Clause (LICENSE)

More

Packages that depend on filesize_plus