{"id":25619642,"url":"https://github.com/anmolsethi/file_size","last_synced_at":"2025-04-14T00:41:12.654Z","repository":{"id":56828767,"uuid":"351947405","full_name":"AnmolSethi/file_size","owner":"AnmolSethi","description":"Get the Human readable size of the file.","archived":false,"fork":false,"pushed_at":"2021-09-15T11:27:50.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T14:52:31.441Z","etag":null,"topics":["dart","dart-package","filesize","flutter","flutter-package"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/file_sizes","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnmolSethi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-27T00:41:00.000Z","updated_at":"2024-02-28T08:23:41.000Z","dependencies_parsed_at":"2022-08-26T13:51:14.896Z","dependency_job_id":null,"html_url":"https://github.com/AnmolSethi/file_size","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Ffile_size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Ffile_size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Ffile_size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolSethi%2Ffile_size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnmolSethi","download_url":"https://codeload.github.com/AnmolSethi/file_size/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804610,"owners_count":21164126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","dart-package","filesize","flutter","flutter-package"],"created_at":"2025-02-22T06:18:26.372Z","updated_at":"2025-04-14T00:41:12.636Z","avatar_url":"https://github.com/AnmolSethi.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileSize\n\n[![pub package](https://img.shields.io/pub/v/file_sizes.svg)](https://pub.dartlang.org/packages/file_sizes) [![Dart](https://github.com/aguilaair/filesize/actions/workflows/dart.yml/badge.svg)](https://github.com/AnmolSethi/file_sizes/actions/workflows/dart.yml)\n\nGet the Human readable size of the file. It is purely written in dart and support both number and string as parameters.\n\n## Examples\n\n\u003e getSize(string or number, {PrecisionValue}): returns String\n\n- Direct Method Call\n\n```dart\nFileSize.getSize(1000)               '1.00 KB'\nFileSize.getSize(1048576)            '1.04 MB'\nFileSize.getSize(1073741824)         '1.00 GB'\nFileSize.getSize(1099511627776)      '1.00 TB'\n```\n\n- Method call with PrecisionValue [Optional]\n\n```dart\nFileSize.getSize(664365320, PrecisionValue.THREE)      \"633.588 MB\"\nFileSize.getSize(4324324232343, PrecisionValue.FOUR)   \"3.9321 TB\"\n```\n\n- Method call without decimal value\n\n```dart\nFileSize.getSize(664365320, PrecisionValue.NONE)         \"633 MB\"\nFileSize.getSize(4324324232343, PrecisionValue.NONE)     \"3 TB\"\n```\n\n\u003e getKiloBytes(string or number, {PrecisionValue}): returns String\n\n```dart\nFileSize.getKiloBytes(54613)      '54.61 KB'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmolsethi%2Ffile_size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmolsethi%2Ffile_size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmolsethi%2Ffile_size/lists"}