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 stars88 forks19 contributorsQuiet · 9mo agoSince 2014v7.1.0MIT

Meet the team

See all 19 on GitHub →
sindresorhus
sindresorhus64 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 · 0 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 →
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 · 9mo ago
doomsower
maximumFractionDigits not working as expectedClosedIssue

This code Results in following output: I expect that both and should be . I'm using pretty-bytes@^5.6.0

doomsower · 9mo ago
gaborcsardi
Fixed width formatClosedIssue

For progress bars, it would be nice to have an output format that is always the same width. E.g. a possible six character wide format:

gaborcsardi · 9mo ago
Structured data for AI agents

Repository: sindresorhus/pretty-bytes. Description: Convert bytes to a human readable string: 1337 → 1.34 kB Stars: 1300, Forks: 88. Primary language: JavaScript. Languages: JavaScript (97.7%), TypeScript (2.3%). License: MIT. Latest release: v7.1.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo 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