{"size": 250, "ext": "js", "max_stars_repo_path": "validators/not-empty.js", "max_stars_repo_name": "meanie/express-validators", "max_stars_repo_stars_event_min_datetime": "2016-03-08T14:22:21.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T17:30:00.000Z", "max_issues_repo_path": "validators/not-empty.js", "max_issues_repo_name": "meanie/express-validators", "max_issues_repo_issues_event_min_datetime": "2017-08-24T07:33:51.000Z", "max_issues_repo_issues_event_max_datetime": "2020-02-28T22:00:55.000Z", "max_forks_repo_path": "validators/not-empty.js", "max_forks_repo_name": "meanie/express-validators", "max_forks_repo_forks_event_min_datetime": "2016-06-22T12:01:55.000Z", "max_forks_repo_forks_event_max_datetime": "2018-03-20T12:18:39.000Z"}
{"max_stars_count": 38, "max_issues_count": 3, "max_forks_count": 15, "avg_line_length": 15.625, "max_line_length": 52, "alphanum_fraction": 0.64}
'use strict';

/**
 * Dependencies
 */
const checkEmpty = require('./helpers/check-empty');

/**
 * Check if not empty
 */
module.exports = function notEmpty(value) {
  if (checkEmpty(value)) {
    throw new Error('Expected non-empty value');
  }
};
