{"size": 631, "ext": "js", "max_stars_repo_path": "src/utils/index.js", "max_stars_repo_name": "kathirr007/FullStack-Vue-Simple-Coin-Cap", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/utils/index.js", "max_issues_repo_name": "kathirr007/FullStack-Vue-Simple-Coin-Cap", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utils/index.js", "max_forks_repo_name": "kathirr007/FullStack-Vue-Simple-Coin-Cap", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.3703703704, "max_line_length": 58, "alphanum_fraction": 0.648177496}
export const formatCurrency = number => {
  const standardFormat = new Intl.NumberFormat('en-US', {
    style: 'currency',
    currency: 'USD',
    minimumFractionDigis: 0
  })

  const expandedFormat = new Intl.NumberFormat('en-US', {
    style: 'currency',
    currency: 'USD',
    minimumFractionDigis: 4
  })

  if (standardFormat.format(number) === '$0') {
    return expandedFormat.format(number)
  }

  return standardFormat.format(number)
}

export const formatNumber = number => {
  return new Intl.NumberFormat().format(number)
}
export const isValuePositive = number => {
  return number > 0
}
