utils/rollup-plugins/lib/devserver.js
function humanizeSize(bytes) {
  const index = Math.floor(Math.log(bytes) / Math.log(1024));
  if (index < 0) return '';
  return `${+((bytes / 1024) ** index).toFixed(2)} ${units[index]}`;
}
function humanizeSize(bytes) {
  const index = Math.floor(Math.log(bytes) / Math.log(1024));
  if (index < 0) return '';
  return `${+((bytes / 1024) ** index).toFixed(2)} ${units[index]}`;
}
function humanizeSize ( bytes ) { const index = Math . floor ( Math . log ( bytes ) / Math . log ( 1024 ) ) ; if ( index < 0 ) return '' ; return ` ${ + ( ( bytes / 1024 ) ** index ) . toFixed ( 2 ) } ${ units [ index ] } ` ; }
Convert bytes into a human readable form.
@param {number} bytes Number of bytes to convert.
@returns {string}
Convert bytes into a human readable form .