An Ember template helper inspired by the Rails number_to_human_size method. It makes displaying file sizes in human-readable fashion easy.
It supports both IEC Byte Units (KiB, MiB, etc.) and traditional byte units (kB, MB, etc.).
$ ember install ember-number-to-human-size
Pretty darn simple. There are three parameters, the second and third being optional:
If we want to use IEC Byte Units, just set the second parameter to true:
Finally, the third parameter lets you specific the number of significant digits. It defaults to 0:
$ ember server
$ open http://localhost:4200
$ ember test
$ ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.