{"size": 191, "ext": "js", "max_stars_repo_path": "js/util.js", "max_stars_repo_name": "fabe/rolldown", "max_stars_repo_stars_event_min_datetime": "2017-04-02T14:07:58.000Z", "max_stars_repo_stars_event_max_datetime": "2017-04-02T14:07:58.000Z", "max_issues_repo_path": "js/util.js", "max_issues_repo_name": "fabe/rolldown", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/util.js", "max_forks_repo_name": "fabe/rolldown", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.3636363636, "max_line_length": 62, "alphanum_fraction": 0.6073298429}
'use strict';

import base64 from 'base-64';

const util = {
  getExtension: url => url.split('.').pop().split(/\#|\?/)[0],
  b64: string => base64.encode(string),
};

module.exports = util;
