{"id":15008710,"url":"https://github.com/matanlurey/kilobyte","last_synced_at":"2025-04-09T16:21:40.857Z","repository":{"id":48425486,"uuid":"92568558","full_name":"matanlurey/kilobyte","owner":"matanlurey","description":"Dart package for size measurements","archived":false,"fork":false,"pushed_at":"2024-04-15T02:56:58.000Z","size":15,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T16:21:24.576Z","etag":null,"topics":["conversion","dart","dartlang","file-size","files","size"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/kilobyte","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/matanlurey.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":"2017-05-27T03:41:59.000Z","updated_at":"2024-04-15T02:40:09.000Z","dependencies_parsed_at":"2022-08-19T13:10:21.154Z","dependency_job_id":null,"html_url":"https://github.com/matanlurey/kilobyte","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/matanlurey%2Fkilobyte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matanlurey%2Fkilobyte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matanlurey%2Fkilobyte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matanlurey%2Fkilobyte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matanlurey","download_url":"https://codeload.github.com/matanlurey/kilobyte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065287,"owners_count":21041872,"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":["conversion","dart","dartlang","file-size","files","size"],"created_at":"2024-09-24T19:20:13.049Z","updated_at":"2025-04-09T16:21:40.844Z","avatar_url":"https://github.com/matanlurey.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kilobyte\n\nA measurement of payload or footprint, such as `3.12mb`, based on the IEC\nstandard.\n\n[![Pub Package](https://img.shields.io/pub/v/kilobyte.svg)](https://pub.dev/packages/kilobyte)\n[![Github Actions](https://github.com/matanlurey/kilobyte/actions/workflows/check.yaml/badge.svg)](https://github.com/matanlurey/kilobyte/actions/workflows/check.yaml)\n[![Coverage Status](https://coveralls.io/repos/github/matanlurey/kilobyte/badge.svg)](https://coveralls.io/github/matanlurey/kilobyte)\n\n## Usage\n\n```dart\nimport 'package:kilobyte/kilobyte.dart';\n\nvoid main() {\n  final size = Size(bytes: 1536);\n  print(size); // 1.50kb\n}\n```\n\n## Contributing\n\nKilobyte is a tiny, focused package. Within that scope, we're happy to accept\ncontributions. If you have a feature you'd like to see, feel free to\n[file an issue](https://github.com/matanlurey/kilobyte/issues/new) or\n[fork and open a pull request](https://github.com/matanlurey/kilobyte/fork).\n\n### CI\n\nThis package is:\n\n- Formatted with `dart format`.\n- Checked with `dart analyze`.\n- Tested with `dart test`, including with code coverage.\n\nSee [`github/workflows/check.yaml`](./.github/workflows/check.yaml) for details.\n\n### Coverage\n\nTo view the coverage report locally (MacOS):\n\n```shell\nbrew install lcov\ndart run coverage:test_with_coverage\ngenhtml coverage/lcov.info -o coverage/html\nopen coverage/html/index.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatanlurey%2Fkilobyte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatanlurey%2Fkilobyte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatanlurey%2Fkilobyte/lists"}