Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/utils / lib / prettyFileSize.js
Size: Mime:
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
import prettierBytes from '@transloadit/prettier-bytes';
var prettyFileSize = function prettyFileSize() {
  var fileSize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  return (fileSize === null || fileSize === void 0 ? void 0 : fileSize.pretty) || (fileSize === null || fileSize === void 0 ? void 0 : fileSize.total_recursive_pretty) || prettierBytes(fileSize && _typeof(fileSize) === 'object' ? fileSize.bytes || fileSize.total_recursive_bytes : fileSize);
};
export default prettyFileSize;