{"size": 315, "ext": "js", "max_stars_repo_path": "github/src/utils/env.js", "max_stars_repo_name": "hiyangguo/examples", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "github/src/utils/env.js", "max_issues_repo_name": "hiyangguo/examples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "github/src/utils/env.js", "max_forks_repo_name": "hiyangguo/examples", "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": 22.5, "max_line_length": 82, "alphanum_fraction": 0.6984126984}
export function setItem(env) {
  sessionStorage.setItem('ENV', encodeURIComponent(JSON.stringify(env)));
}

export function getItem(key) {
  const env = JSON.parse(decodeURIComponent(sessionStorage.getItem('ENV'))) || {};
  if (key !== undefined) {
    return env[key];
  }
  return env;
}

export default getItem;
