index.js
function bytes(value, options) {
  if (typeof value === 'string') {
    return parse(value);
  }

  if (typeof value === 'number') {
    return format(value, options);
  }

  return null;
}
function bytes(value, options) {
  if (typeof value === 'string') {
    return parse(value);
  }

  if (typeof value === 'number') {
    return format(value, options);
  }

  return null;
}
function bytes ( value , options ) { if ( typeof value === 'string' ) { return parse ( value ) ; } if ( typeof value === 'number' ) { return format ( value , options ) ; } return null ; }
Convert the given value in bytes into a string or parse to string to an integer in bytes.

@param {string|number} value
@param {{
case: [string],
decimalPlaces: [number]
fixedDecimals: [boolean]
thousandsSeparator: [string]
unitSeparator: [string]
}} [options] bytes options.

@returns {string|number|null}
Convert the given value in bytes into a string or parse to string to an integer in bytes .