{"size": 527, "ext": "js", "max_stars_repo_path": "src/flows/short-name.js", "max_stars_repo_name": "frostijs/cli", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/flows/short-name.js", "max_issues_repo_name": "frostijs/cli", "max_issues_repo_issues_event_min_datetime": "2020-04-05T01:34:42.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-09T01:55:58.000Z", "max_forks_repo_path": "src/flows/short-name.js", "max_forks_repo_name": "frostijs/cli", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 27.7368421053, "max_line_length": 111, "alphanum_fraction": 0.5787476281}
module.exports = (config) => {
  return {
    name: 'shortName',
    type: 'input',
    default: config.default.name.split(' ').join('').substring(0, 12),
    message: 'Define a short name (maximum of 12 characters) https://developers.chrome.com/apps/manifest/name',
    filter: ( value, other, again ) => {
      return new Promise((resolve, reject) => {
        if (value.length) {
          config.shortName = value
          resolve(value)
        }
        reject('Please enter a project shortName')
      })

    }
  }
}
