{"size": 491, "ext": "js", "max_stars_repo_path": "lib/curd/scan_model.js", "max_stars_repo_name": "iamljw/egg-curd", "max_stars_repo_stars_event_min_datetime": "2018-11-06T10:08:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-29T01:44:50.000Z", "max_issues_repo_path": "lib/curd/scan_model.js", "max_issues_repo_name": "iamljw/egg-coding", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/curd/scan_model.js", "max_forks_repo_name": "iamljw/egg-coding", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.380952381, "max_line_length": 65, "alphanum_fraction": 0.5234215886}
'use strict';

const path = require('path');
const fs = require('fs');

module.exports = () => {
    const model_path = 'app/model';
    const files = fs.readdirSync(model_path);
    return files.filter(item => {
        if (!fs.statSync(path.join(model_path, item)).isFile()) {
            return false;
        }
        if (path.extname(item) !== '.js') {
            return false;
        }
        return true;
    }).map(item => {
        return path.basename(item, '.js');
    });
};
