avoidwork / filesize.js

JavaScript library to generate a human readable String describing the file size
https://filesizejs.com
BSD 3-Clause "New" or "Revised" License
1.61k stars 97 forks source link

*-nix ls -h styled filesize support? #1

Closed baoshan closed 12 years ago

baoshan commented 12 years ago

It would be nicer to have an option to generate K, M, G, instead of KB, MG, and GB like ls -h

It could also benefits some scenarios requiring perfect number alignment.

Great work!

avoidwork commented 12 years ago

Good point. I'll add that tonight or tomorrow.

avoidwork commented 12 years ago

It's been implemented in v1.5, and thanks for posting this idea. I have a use for it right now.