Skip to content

Releases: AndrewClements84/ByteFlow.Net

v0.2.0 — IEC + SI, Culture-Aware, and Custom Units

03 Oct 10:44
7619048

Choose a tag to compare

v0.2.0 — IEC + SI, Culture-Aware, and Custom Units

This release brings major new features to ByteFlow.Net while keeping it simple, fast, and dependency-free.
It extends the library into a complete one-stop solution for human-readable byte formatting in .NET.


✨ New Features

  • Added support for IEC (KiB, MiB, GiB) and SI (KB, MB, GB) units.
  • Added culture-aware parsing/formatting (e.g., 1.5 MB in en-US, 1,5 MB in de-DE).
  • Added custom suffix sets for non-standard units (e.g., "KX", "MX").
  • Added alignment/padding helpers for formatted output in tables or logs.

🧹 Improvements

  • Updated XML documentation for public APIs.
  • Refactored test suite for clarity and added coverage for new features.
  • Maintained 100% code coverage on Codecov.

📦 Notes

  • Still zero dependencies.
  • Backwards compatible — existing ToHumanBytes/ToBytes calls behave the same by default.

ByteFlow.Net v0.1.1 — First Public Release

01 Oct 15:04

Choose a tag to compare

🎉 First Public Release of ByteFlow.Net

This release introduces ByteFlow.Net, a lightweight utility library for converting between bytes and human-readable formats (KB, MB, GB, TB, PB) with zero dependencies.

✨ Features

  • Convert bytes into human-readable strings
    (1234567 → "1.18 MB")
  • Parse human-readable strings back into bytes
    ("2.5 GB" → 2684354560)
  • Safe parsing with TryParseHumanBytes (no exceptions on invalid input)
  • Full unit test coverage (100% line coverage)
  • Supports .NET Standard 2.0 → compatible with .NET Framework 4.6.1+ and all modern .NET versions (Core, 5/6/7/8)

📦 Installation

Install from NuGet:

dotnet add package ByteFlow.Net

#### 🔮 Roadmap
Planned features for upcoming releases:
- Support for both **IEC (binary: KiB, MiB)** and **SI (decimal: KB, MB)** unit standards.
- Culture-aware parsing (e.g., commas vs dots for decimals).
- Customizable suffix sets (allowing non-standard units).
- Performance benchmarking and optimizations for very large inputs.
- Additional helpers for formatting with alignment/padding.