NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1989 most downloaded on npm
Lightweight, zero-dependency JavaScript utility to convert bytes to human-readable strings with localization support
Latest stable
11.0.35
Last release 2 days ago
18 Nov 2026
Ships unpredictably
gaps range from 8 days to 6 months
Nearly every release is documented
notes for 56 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
160 releases · first in 2012
Drag across the ruler to compare, or tap a release to open it.
Returning strict mode to core function `f6d2b87`
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixing assignment (sigh) `f26ac07`
Fix type inference for output: 'array' when precision is configured `#151`
Updating the signature to use destructuring, removing edge case assignments on invalid inputs (fail by design) `a833bb5`
Nothing published for this version
[typescript] Add pad, precision, & roundingMethod `#145`
Updating dependencies, fixing test:unit, building to update version in lib/, updating CHANGELOG.md, version bump to release `b6628f8`
31 October 2021
test:unit, building to update version in lib/**, updating CHANGELOG.md, version bump to release b6628f8Fixing type comments of base and standard `#143`
feat: infer result type correctly with TypeScript (no "npx tsc") `#144`
Revert "Fixing assignment of standard such that it aligns with the README (default of "iec") & updating tests, fixing hardcoded copyright year in roll
Version bump to release, updating dependencies `9a1fd51`
Fixing assignment of standard such that it aligns with the README (default of "iec") & updating tests, fixing hardcoded copyright year in rollup.confi
12 September 2021
standard such that it aligns with the README (default of "iec") & updating tests, fixing hardcoded copyright year in rollup.config.js, version bump to release bb7242918 August 2021
#138#136#1379633cdaf89b10211 July 2021
Nothing published for this version
Nothing published for this version
Implementing precision option with tests, fixes #117, fixes #132 `#117` `#132`
[feature suggestion] add roundingMethod option `#131`
Fixing missing unit on object output when input is 0 `72c5736`
Removing the multiple return statements from the end of filesize(), tweaking order of final changes `1d19261`
Fixing late application of pad `6c1d2cb`
Updating dependencies, updating bannerShort in rollup.config.js `86b4374`
Remove support for bower `51d4eb6`
Adding unit to object output `#129`
Replace build system with rollup `#124`
Adding exponent to object output, fixes #112 `#113`
21 February 2020
exponent to object output, fixes #112 #113#112exponent to object output, fixes #112 #112auto-changelog to generate a formatted changelog, fixes #110 #110d1b726a8acef4c6eb9744Fixing a regression due to 5.x revert, fixes #111 `#111`
8 November 2019
30 October 2019
#106#1053909b0471a9eadec99f00Nothing published for this version
Reformatting CHANGELOG `fd76462`
git-log based CHANGELOG via npm run changelog `d8415f5`
Nothing published for this version
Fixing case where rounding results in the wrong exponent, fixes #103 `#103`
Add support for localeOptions option: allow customization of i18n output `#102`
Refactoring locale option to accept String or Boolean values, re-organizing code such that an exponent output skips unneeded ops `dd8f754`
15 February 2019
locale option to accept String or Boolean values, re-organizing code such that an exponent output skips unneeded ops dd8f754Fixing order of ops that could've impacted object output `3b71615`
13 February 2019
object output 3b71615Nothing published for this version
Including ES6 version with npm install, updating grunt build such that more files are linted `fb9bd3e`
Adding separator option, fixes #93 `#93`
3 February 2018
separator option, fixes #93 #93Add CDNJS version badge in README.md `#90`
Updating uglify dependency `b93909e`
Removing loader script as it apparently breaks browserify/webpack loading (sigh) `54d9770`
30 April 2017
54d9770Adding index.js to load es5 or es6 depending on the test environment `0e07bba`
29 April 2017
index.js to load es5 or es6 depending on the test environment 0e07bbaAdding babili task to minify the es6 file, fixes #86 `#86`
29 April 2017
babili task to minify the es6 file, fixes #86 #86Building missing files, updating README `77db546`
6 March 2017
77db546Changing things such that you can do filesize(0, {exponent: n}) and get the correct result, adding a test, fixes #85 `#85`
Adding fullforms for overriding full form `727db07`
24 January 2017
fullforms for overriding full form 727db07> 24 January 2017 - Fixing 0 bytes `d957df3`
24 January 2017
0 bytes d957df3> 24 January 2017 - Updating README `7bc227e`
24 January 2017
7bc227eCorrecting longform to fullform `1dee34f`
24 January 2017
longform to fullform 1dee34fAdding longform flag, fixing markdown in README `7d8b650`
24 January 2017
longform flag, fixing markdown in README 7d8b650> 23 January 2017 - Oops, fixes #84 `#84`
23 January 2017
#84Simplifying filesize.partial() & adding a test `4d1e9ea`
21 January 2017
filesize.partial() & adding a test 4d1e9eaChanging a statement to be a little easier to read, updating build status graphic to be SVG for better rendering on various devices `de2e388`
19 January 2017
de2e388travis-ci.org config 'cause the eslint dep requires es6 engine without a strictEngine (so pro) c1d40b5245aa6dCreating filesize.partial() for creating a partial application / functional programming style, updating dependencies, fixing lint errors, updating REA
19 January 2017
#83filesize.partial() for creating a partial application / functional programming style, updating dependencies, fixing lint errors, updating README & LICENSE copyright year, updating README to cover filesize.partial() 1ba7b0c81bc1d2Adding support for IEC standard via new standard descriptor property (defaults to jedec), fixes #80 `#80`
add test case for huge number `#76`
Fixing a poor choice in wording by marking suffixes for deprecation & moving to symbols, updating README (fixes #72, #73) `#72`
22 January 2016
suffixes for deprecation & moving to symbols, updating README (fixes #72, #73) #72Fixing kilobit & kilobyte symbols by ensuring JEDEC for base 2 & SI for base 10, fixes #69 `#69`
Fixing bit suffix & updating build to use latest version of babel, fixes #68 `#68`
Correctly check for AMD loader `#66`
One column per quarter.