GitShow/sindresorhus/pretty-bytes
sindresorhus

pretty-bytes

Convert bytes to a human readable string: 1337 → 1.34 kB

by sindresorhus
Star on GitHubForknpm

JavaScript

1.3k stars91 forks19 contributorsActive · 1mo agoSince 2014v7.1.1MIT

Meet the team

See all 19 on GitHub →
sindresorhus
sindresorhus66 contributions
nmoinvaz
nmoinvaz3 contributions
kevva
kevva2 contributions
NMinhNguyen
NMinhNguyen2 contributions
Turbo87
Turbo872 contributions
siddhant-nair
siddhant-nair1 contribution
meisterlampe
meisterlampe1 contribution
jakecastelli
jakecastelli1 contribution

Languages

View on GitHub →
JavaScript97.7%
TypeScript2.3%

Commit activity

Last 12 weeks · 2 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
xxjaemin68
docs(github): add PR templateMergedPR

Small chore: adds a PR template. New PRs will get a lightweight checklist for description, type-of-change, and a couple of contributor checkboxes. Doesn't force anything — GitHub just pre-fills the description field.

xxjaemin68 · 1mo ago
TomerAberbach
Numbers less than 1 format with very high precisionClosedIssue

I looked through past issues and PRs, but didn't find a reason would apply only to numbers >= 1.

TomerAberbach · 1mo ago
nox-4O4
Use non-breaking space for unit separatorClosedIssue

Currently, a plain space is used for separating unit and number string. This may lead to the unit wrapping to a new line: While this can easily be worked around using CSS styling or a custom wrapper, it would be nice if this module used a non-breaking space to separate the unit.

nox-4O4 · 11mo ago
Structured data for AI agents

Repository: sindresorhus/pretty-bytes. Description: Convert bytes to a human readable string: 1337 → 1.34 kB Stars: 1305, Forks: 91. Primary language: JavaScript. Languages: JavaScript (97.7%), TypeScript (2.3%). License: MIT. Latest release: v7.1.1 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, nmoinvaz, kevva, NMinhNguyen, Turbo87, siddhant-nair, meisterlampe, jakecastelli, dawsbot, yciabaud and others.

·@ofershap

Replace github.com with gitshow.dev