FLUTTER ECOSYSTEM

synw/filesize

Humanizar tamanhos de arquivos

Capa do projeto filesize
Stars
46
Forks
14
Último push (UTC)
17 de mar. de 2023
Status do projeto
Arquivado
synw GitHub avatar
GITHUB User

synw ↗

"All that is gold does not glitter, not all those who wander are lost". Tolkien

LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • testDesenvolvimento^1.16.8
  • test_covDesenvolvimento^1.0.1
  • pedanticDesenvolvimento^1.11.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

Filesize

pub package Build Status Coverage Status

A micro library that provides an easy way to get human readable file size strings

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