Skip to content

Add a typed formatBytes utility #41

Closed

Description

@nambok

Add a new self-contained file lib/formatBytes.ts that exports formatBytes(bytes: number, decimals?: number): string, formatting a byte count as a human-readable string (e.g. 1536 -> "1.5 KB", 1048576 -> "1 MB"). Use explicit TypeScript types. Do NOT modify any other files. Keep it small.

(CoderHelm execution-sandbox end-to-end test — will be closed after verification.)

Activity

  1. coderhelm commented on Jul 23, 2026

    @coderhelm
    Contributor

    🔄 Coderhelm is working on this

    Phase Status
    Triage 🔄 In progress
    Plan ⏳ Pending
    Implement ⏳ Pending
    Test ⏳ Pending
    Security ⏳ Pending
    PR ⏳ Pending

    View run →

  2. coderhelm commented on Jul 23, 2026

    @coderhelm
    Contributor

    ⚠️ Coderhelm couldn't complete this issue

    An error occurred during processing 404 Not Found (not_found_error): model:

    If you can, add more detail to the issue description — for example which files to change, expected behavior, or relevant code snippets — and I'll try again.

    View run →

  3. coderhelm commented on Jul 23, 2026

    @coderhelm
    Contributor

    🔄 Coderhelm is working on this

    Phase Status
    Triage ✅ Done
    Plan ✅ Done
    Implement 🔄 In progress
    Test ⏳ Pending
    Security ⏳ Pending
    PR ⏳ Pending

    View run →

  4. added a commit that references this issue on Jul 23, 2026
  5. coderhelm commented on Jul 23, 2026

    @coderhelm
    Contributor

    🔄 Coderhelm is working on this

    Phase Status
    Triage ✅ Done
    Plan ✅ Done
    Implement 🔄 In progress
    Test ⏳ Pending
    Security ⏳ Pending
    PR ⏳ Pending

    View run →

  6. added a commit that references this issue on Jul 23, 2026
  7. nambok commented on Jul 23, 2026

    @nambok
    CollaboratorAuthor

    CoderHelm execution-sandbox E2E test complete — verified run_checks GREEN on Node 20. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions