{"size": 410, "ext": "js", "max_stars_repo_path": "client/src/utils/localeDate.js", "max_stars_repo_name": "ryuuto829/journey-log", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/utils/localeDate.js", "max_issues_repo_name": "ryuuto829/journey-log", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/src/utils/localeDate.js", "max_forks_repo_name": "ryuuto829/journey-log", "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": 24.1176470588, "max_line_length": 80, "alphanum_fraction": 0.643902439}
/**
 * Format date string to display "yyyy-mm-dd"
 * NOTE: use it for form date input
 * @param {string} date
 */
export const formattedDate = date => new Date(date).toISOString().split('T')[0];

/**
 * Format date string to display "Feb 10, 2021"
 * @param {string} date
 */
export const localeDate = date => new Date(date).toLocaleString('en-us', {
  month: 'short',
  year: 'numeric',
  day: 'numeric',
});
