A measurement of payload or footprint, such as 3.12mb, based on the IEC
standard.
import 'package:kilobyte/kilobyte.dart';
void main() {
final size = Size(bytes: 1536);
print(size); // 1.50kb
}Kilobyte is a tiny, focused package. Within that scope, we're happy to accept contributions. If you have a feature you'd like to see, feel free to file an issue or fork and open a pull request.
This package is:
- Formatted with
dart format. - Checked with
dart analyze. - Tested with
dart test, including with code coverage.
See github/workflows/check.yaml for details.
To view the coverage report locally (MacOS):
brew install lcov
dart run coverage:test_with_coverage
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html