filesize_plus

Last updated:

0 purchases

filesize_plus Image
filesize_plus Images
Add to Cart

Description:

filesize plus

Filesize #

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"
copied to clipboard
Optional parameter to specify numbers after comma/point:
filesize(664365320, 4); // "633.5881 MB"
filesize(4324324232343, 3); // "3.932 TB"
copied to clipboard
Inspired by filesize.js

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.