{"size": 636, "ext": "js", "max_stars_repo_path": "_templates/hygen-nextjs/page/index.js", "max_stars_repo_name": "google-microsoft/nextjs-cli", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_templates/hygen-nextjs/page/index.js", "max_issues_repo_name": "google-microsoft/nextjs-cli", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_templates/hygen-nextjs/page/index.js", "max_forks_repo_name": "google-microsoft/nextjs-cli", "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": 28.9090909091, "max_line_length": 89, "alphanum_fraction": 0.5125786164}
const path = require("path");
module.exports = {
    params: ({args}) => {
        let srcGoSourcePath = `./${path.relative('./src/', `./src/pages/${args.path}`)}`;
        let basename = path.basename(args.path);
        /**
         * If the name is not passed,
         * take the basename of the path as the name,
         * which is used to generate the class name
         */
        if (!args.name) {
            args.name = basename;
        }
        let title = args.title;
        if (!args.title) {
            title = args.name;
        }

        return {path: args.path, srcGoSourcePath, name: args.name, title};
    }
}
