API Docs for: 0.25.0
Show:

human-file-size Class

Module: utils
Parent Module: ember-osf

Item Index

Methods

Methods

humanFileSize

(
  • bytes
  • bool
)
String

Borrowed from osf code, transforms received number of bytes size into human- readable sizing.

Parameters:

  • bytes Number | String

    Number of bytes

  • bool Boolean

    Whether to use 1000 as the base for conversion or 1024

Returns: