Ross ROSS = Recommend OSS · open-source software intelligence for agents

avoidwork/filesize.js

A lightweight, high-performance file size utility that converts bytes to human-readable strings. Zero dependencies. 100% test coverage. observed · 2026-08-28

github.com/avoidwork/filesize.js · homepage · JavaScript · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

77/100

  • Activity 99
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5297
  • days_rel: n/a
  • days_push: 9
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1708 stars · 102 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

filesize.js is a lightweight, zero-dependency JavaScript library that converts byte counts into human-readable strings. It supports SI, IEC, and JEDEC unit standards, bits, BigInt, localization via the Intl API, and works in both browsers and Node.js.

Use cases

  • format file sizes in bytes as human-readable strings
  • display 1024 as 1 KiB using IEC standard
  • convert bytes to kilobits for bandwidth display
  • create reusable file size formatters with partial application
  • format file sizes with locale-aware number formatting
  • handle extremely large file sizes with BigInt
  • get file size as structured object instead of string

When to choose

  • you need reliable, dependency-free byte-to-human-readable conversion in JavaScript or TypeScript
  • you need support for multiple unit standards (SI, IEC, JEDEC) or bits
  • you need a tiny utility that works in browser, Node.js, and with BigInt values

When to avoid

  • you need actual file system operations like reading or measuring files on disk
  • your project is not JavaScript/TypeScript based
  • you need formatting of units other than data sizes (e.g., durations, weights)

Facets

library · maturity stable

serialization developer-tools developer-tools files web-development browser cross-platform filesize bytes human-readable zero-dependency typescript bigint formatting nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
avoidwork/filesize.jsmain77

For agents

markdown · JSON · MCP: product_card(name="avoidwork/filesize.js")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem