{"size": 273, "ext": "js", "max_stars_repo_path": "node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js", "max_stars_repo_name": "go-choppy/ossutil-github-action-js", "max_stars_repo_stars_event_min_datetime": "2015-01-08T00:04:17.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-24T11:32:14.000Z", "max_issues_repo_path": "node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js", "max_issues_repo_name": "go-choppy/ossutil-github-action-js", "max_issues_repo_issues_event_min_datetime": "2016-03-05T15:40:31.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-02T08:47:37.000Z", "max_forks_repo_path": "node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js", "max_forks_repo_name": "go-choppy/ossutil-github-action-js", "max_forks_repo_forks_event_min_datetime": "2015-01-16T05:34:17.000Z", "max_forks_repo_forks_event_max_datetime": "2020-03-24T08:03:17.000Z"}
{"max_stars_count": 3690, "max_issues_count": 1432, "max_forks_count": 708, "avg_line_length": 22.75, "max_line_length": 53, "alphanum_fraction": 0.6263736264}
/**
 * Prefix token for usage in the Authorization header
 *
 * @param token OAuth token or JSON Web Token
 */
export function withAuthorizationPrefix(token) {
    if (token.split(/\./).length === 3) {
        return `bearer ${token}`;
    }
    return `token ${token}`;
}
