{"size": 290, "ext": "js", "max_stars_repo_path": "test-rewriter.js", "max_stars_repo_name": "samthor/dhost", "max_stars_repo_stars_event_min_datetime": "2019-03-13T15:55:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-20T17:05:30.000Z", "max_issues_repo_path": "test-rewriter.js", "max_issues_repo_name": "samthor/dhost", "max_issues_repo_issues_event_min_datetime": "2019-03-20T12:10:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-06T04:05:47.000Z", "max_forks_repo_path": "test-rewriter.js", "max_forks_repo_name": "samthor/dhost", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 11, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 19.3333333333, "max_line_length": 51, "alphanum_fraction": 0.6310344828}

import * as types from './types/index.js';
import mime from 'mime';


/**
 * @param {types.RArg} arg
 * @return {Promise<types.RResult|undefined>}
 */
export default async function moduleRewriter(arg) {
  if (arg.search === '?lol') {
    return {buffer: new Buffer('lol', 'utf-8')};
  }
}
