{"size": 276, "ext": "js", "max_stars_repo_path": "src/common/plugins/color/index.js", "max_stars_repo_name": "openfext/fext-vue-admin", "max_stars_repo_stars_event_min_datetime": "2020-05-17T16:38:59.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-07T06:10:39.000Z", "max_issues_repo_path": "src/common/plugins/color/index.js", "max_issues_repo_name": "openfext/fext-vue-admin", "max_issues_repo_issues_event_min_datetime": "2020-06-18T07:24:44.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-23T12:17:28.000Z", "max_forks_repo_path": "src/common/plugins/color/index.js", "max_forks_repo_name": "openfext/fext-vue-admin", "max_forks_repo_forks_event_min_datetime": "2020-06-11T15:15:06.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T18:12:09.000Z"}
{"max_stars_count": 202, "max_issues_count": 2, "max_forks_count": 27, "avg_line_length": 17.25, "max_line_length": 60, "alphanum_fraction": 0.5724637681}
function install(Vue, { fallback } = {}) {
  Vue.directive('color', {
    inserted: function(el, bindings, vnode) {
      const value = bindings.value || fallback || 'inherit';

      el.style.color = `${value}`;
    }
  });
}

export default {
  name: 'color',

  install
};
