{"size": 592, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "pawan495/C--README", "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": "pawan495/C--README", "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": "pawan495/C--README", "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": 34.8235294118, "max_line_length": 60, "alphanum_fraction": 0.6368243243}
const { prompt } = require("inquirer");
const { writeFile } = require("fs");
const questions = require("./utils/questions");
const license = require("./utils/license");
const makeMD = require("./utils/makeMD");
const generateInfo = require("./utils/genInfo");
let answers = [];

prompt(questions).then((userAnswers) => {
    prompt(license).then((userInput) => {
        userInput.info = generateInfo(userInput);
        answers = Object.assign(userAnswers, userInput);
        writeFile('exampleREADME.md', makeMD(answers), () =>
            console.log('File Created')
        )
    });
});