{"size": 391, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "cli-kit/cli-deprecate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "cli-kit/cli-deprecate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "cli-kit/cli-deprecate", "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": 26.0666666667, "max_line_length": 65, "alphanum_fraction": 0.6751918159}
/**
 *  Utility to print a deprecation warning.
 */
function deprecated(msg, parameters, prefix) {
  if(process.env.NODE_ENV === 'test') return;
  prefix = prefix !== undefined ? prefix : 'deprecated ! ';
  msg = prefix + msg;
  if(Array.isArray(parameters)) {
    return console.warn.apply(console, [msg].concat(parameters));
  }
  return console.warn(msg);
}

module.exports = deprecated;
