{"size": 298, "ext": "js", "max_stars_repo_path": "js/util/getFileName.js", "max_stars_repo_name": "alanandroid/Hack-VM-Compiler", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/util/getFileName.js", "max_issues_repo_name": "alanandroid/Hack-VM-Compiler", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/util/getFileName.js", "max_forks_repo_name": "alanandroid/Hack-VM-Compiler", "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": 15.6842105263, "max_line_length": 100, "alphanum_fraction": 0.6644295302}
/**
 * File Overview:
 *
 */

const path = require('path')

function getFileName() {

  if(!process.argv[2]) {
    throw new Error('Unable to extract filename argument. please execute again using translate.js');
  }
  return path.parse(process.argv[2]).name;
}

module.exports = {
  getFileName
};
